aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-04-24 02:10:45 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-04-24 02:10:45 +0800
commit9e460dd990c7f0d0f548c08ad7649bd9e5c652e7 (patch)
tree437487c50b669733ccfa67db60cea09a5f3765bf
parent6cf8336c78f05833094b42be21da8c627f0f415a (diff)
downloadgsoc2013-evolution-9e460dd990c7f0d0f548c08ad7649bd9e5c652e7.tar
gsoc2013-evolution-9e460dd990c7f0d0f548c08ad7649bd9e5c652e7.tar.gz
gsoc2013-evolution-9e460dd990c7f0d0f548c08ad7649bd9e5c652e7.tar.bz2
gsoc2013-evolution-9e460dd990c7f0d0f548c08ad7649bd9e5c652e7.tar.lz
gsoc2013-evolution-9e460dd990c7f0d0f548c08ad7649bd9e5c652e7.tar.xz
gsoc2013-evolution-9e460dd990c7f0d0f548c08ad7649bd9e5c652e7.tar.zst
gsoc2013-evolution-9e460dd990c7f0d0f548c08ad7649bd9e5c652e7.zip
Only add the Organization: header if it is non-empty. Fixes bug #41730.
2003-04-22 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_get_message): Only add the Organization: header if it is non-empty. Fixes bug #41730. svn path=/trunk/; revision=20935
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-callbacks.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 89b8a31ff7..feed6cff3b 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-22 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-callbacks.c (composer_get_message): Only add the
+ Organization: header if it is non-empty. Fixes bug #41730.
+
2003-04-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (spell_set_ui): Protect against a NULL
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 331fc9cf26..d304f95511 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -519,7 +519,7 @@ composer_get_message (EMsgComposer *composer, gboolean post, gboolean save_html_
camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Account", account->name);
camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Transport", account->transport->url);
camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Fcc", account->sent_folder_uri);
- if (account->id->organization)
+ if (account->id->organization && *account->id->organization)
camel_medium_set_header (CAMEL_MEDIUM (message), "Organization", account->id->organization);
}