diff options
author | Dan Winship <danw@src.gnome.org> | 2000-07-26 01:59:07 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-07-26 01:59:07 +0800 |
commit | dffee3727463f7b84cd97f650cc3adc1b36aa81d (patch) | |
tree | b6bc5a203e589f4ec2690c49862bfd9bc2857e37 /camel/camel-mime-message.c | |
parent | 55499dc0155c1fee40539cd23774453cb3d5cb1d (diff) | |
download | gsoc2013-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-mime-message.c')
-rw-r--r-- | camel/camel-mime-message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index 1a31fc1ea1..e511fece7a 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -445,7 +445,8 @@ write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) /* FIXME: "To" header needs to be set explicitly as well ... */ - camel_medium_set_header((CamelMedium *)mm, "Mime-Version", "1.0"); + if (!camel_medium_get_header ((CamelMedium *)mm, "Mime-Version")) + camel_medium_set_header((CamelMedium *)mm, "Mime-Version", "1.0"); return CAMEL_DATA_WRAPPER_CLASS (parent_class)->write_to_stream (data_wrapper, stream); } |