aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-internet-address.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-26 01:59:07 +0800
committerDan Winship <danw@src.gnome.org>2000-07-26 01:59:07 +0800
commitdffee3727463f7b84cd97f650cc3adc1b36aa81d (patch)
treeb6bc5a203e589f4ec2690c49862bfd9bc2857e37 /camel/camel-internet-address.c
parent55499dc0155c1fee40539cd23774453cb3d5cb1d (diff)
downloadgsoc2013-evolution-dffee3727463f7b84cd97f650cc3adc1b36aa81d.tar
gsoc2013-evolution-dffee3727463f7b84cd97f650cc3adc1b36aa81d.tar.gz
gsoc2013-evolution-dffee3727463f7b84cd97f650cc3adc1b36aa81d.tar.bz2
gsoc2013-evolution-dffee3727463f7b84cd97f650cc3adc1b36aa81d.tar.lz
gsoc2013-evolution-dffee3727463f7b84cd97f650cc3adc1b36aa81d.tar.xz
gsoc2013-evolution-dffee3727463f7b84cd97f650cc3adc1b36aa81d.tar.zst
gsoc2013-evolution-dffee3727463f7b84cd97f650cc3adc1b36aa81d.zip
Don't add a Mime-Version header to a message that already has one.
* camel-mime-message.c (write_to_stream): Don't add a Mime-Version header to a message that already has one. * camel-internet-address.c (internet_encode): Don't put <>s around addresses with no name part. svn path=/trunk/; revision=4318
Diffstat (limited to 'camel/camel-internet-address.c')
-rw-r--r--camel/camel-internet-address.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/camel-internet-address.c b/camel/camel-internet-address.c
index 003cae5b48..9abbc8c632 100644
--- a/camel/camel-internet-address.c
+++ b/camel/camel-internet-address.c
@@ -129,11 +129,11 @@ static char * internet_encode (CamelAddress *a)
if (i!=0)
g_string_append(out, ", ");
- if (name) {
- g_string_sprintfa(out, "%s ", name);
+ if (name && *name) {
+ g_string_sprintfa(out, "%s <%s>", name, addr->address);
g_free(name);
- }
- g_string_sprintfa(out, "<%s>", addr->address);
+ } else
+ g_string_sprintfa(out, "%s", addr->address);
}
ret = out->str;
g_string_free(out, FALSE);