Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
b7a7196b
...
b7a7196b05b79cd824b970fb56a201819d15c0e8
authored
2002-08-15 12:55:57 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixed improper use of header_aget_value().
1 parent
45ec96c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
mail/reply.c
mail/reply.c
View file @
b7a7196
...
...
@@ -79,12 +79,15 @@ mail_reply(int argc, char **argv)
header_aget_value
(
hdr
,
MU_HEADER_CC
,
&
env
.
cc
);
}
header_aget_value
(
hdr
,
MU_HEADER_SUBJECT
,
&
str
);
if
(
str
&&
strncasecmp
(
str
,
"Re:"
,
3
))
util_strcat
(
&
env
.
subj
,
"Re: "
);
util_strcat
(
&
env
.
subj
,
str
);
free
(
str
);
if
(
header_aget_value
(
hdr
,
MU_HEADER_SUBJECT
,
&
str
)
==
0
)
{
if
(
strncasecmp
(
str
,
"Re:"
,
3
))
util_strcat
(
&
env
.
subj
,
"Re: "
);
util_strcat
(
&
env
.
subj
,
str
);
free
(
str
);
}
else
util_strcat
(
&
env
.
subj
,
""
);
fprintf
(
ofile
,
"To: %s
\n
"
,
env
.
to
);
if
(
env
.
cc
)
fprintf
(
ofile
,
"Cc: %s
\n
"
,
env
.
cc
);
...
...
Please
register
or
sign in
to post a comment