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
7b8348fe
...
7b8348fe32d5ecd4c422f75cc1c6dbbe21585b28
authored
2002-10-02 14:39:29 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(compose_header_set): COMPOSE_SINGLE_LINE part rewritten.
1 parent
d8fd8973
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
mail/send.c
mail/send.c
View file @
7b8348f
...
...
@@ -128,14 +128,16 @@ compose_header_set (compose_env_t *env, char *name, char *value,
break
;
case
COMPOSE_SINGLE_LINE
:
if
(
!
value
||
value
[
0
]
==
0
)
return
EINVAL
;
if
(
header_aget_value
(
env
->
header
,
name
,
&
old_value
)
==
0
&&
old_value
[
0
])
{
char
*
new_value
=
NULL
;
asprintf
(
&
new_value
,
"%s,%s"
,
old_value
,
value
);
status
=
header_set_value
(
env
->
header
,
name
,
new_value
,
1
);
free
(
new_value
);
status
=
util_merge_addresses
(
&
old_value
,
value
);
if
(
status
==
0
)
status
=
header_set_value
(
env
->
header
,
name
,
old_value
,
1
);
free
(
old_value
);
}
else
status
=
header_set_value
(
env
->
header
,
name
,
value
,
1
);
...
...
Please
register
or
sign in
to post a comment