diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-04-23 10:20:48 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-04-23 10:20:48 +0800 |
commit | 2439e91a5c2033c26f014c826e99aa44aa80d08e (patch) | |
tree | 94e1ebee306204fa3af2aedcfff60052df27c9d2 /mail/mail-callbacks.c | |
parent | dfc8e2ad3f8f0ce91c16a6538e28491699b0bc99 (diff) | |
download | gsoc2013-evolution-2439e91a5c2033c26f014c826e99aa44aa80d08e.tar.gz gsoc2013-evolution-2439e91a5c2033c26f014c826e99aa44aa80d08e.tar.zst gsoc2013-evolution-2439e91a5c2033c26f014c826e99aa44aa80d08e.zip |
ugh, don't bother checking if the header values are non-NULL - it doesn't hurt to set a NULL header.
svn path=/trunk/; revision=9500
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index b59e4efcb2..871a63325e 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -330,17 +330,9 @@ composer_get_message (EMsgComposer *composer) /* Add info about the sending account */ account = e_msg_composer_get_preferred_account (composer); if (account) { - if (account->name) - camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Account", - account->name); - - if (account->transport && account->transport->url) - camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Transport", - account->transport->url); - - if (account->sent_folder_uri) - camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Fcc", - account->sent_folder_uri); + 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); } return message; |