diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-01-21 09:01:31 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-01-21 09:01:31 +0800 |
commit | 93bd7f1d38c9a2ce00858c0e35b4dd39ad58e420 (patch) | |
tree | 0bdf9fbae3f0233c657c48bbbfcaa14db7628e5b /mail/mail-ops.c | |
parent | f9719d4f0a8b7d44f784664ecf70cdd7c5e8e66d (diff) | |
download | gsoc2013-evolution-93bd7f1d38c9a2ce00858c0e35b4dd39ad58e420.tar.gz gsoc2013-evolution-93bd7f1d38c9a2ce00858c0e35b4dd39ad58e420.tar.zst gsoc2013-evolution-93bd7f1d38c9a2ce00858c0e35b4dd39ad58e420.zip |
Strip leading space from the transport url gotten from the message.
2001-01-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (do_send_queue): Strip leading space from the
transport url gotten from the message.
svn path=/trunk/; revision=7670
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index dd14c320f1..8cd874f042 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -720,9 +720,12 @@ do_send_queue (gpointer in_data, gpointer op_data, CamelException *ex) camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0); /* Get the preferred transport URI */ - transport_url = g_strdup (camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Transport")); - if (transport_url) + transport_url = camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Transport"); + if (transport_url) { + transport_url = g_strdup (transport_url); + g_strstrip (transport_url); camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution-Transport"); + } xport = camel_session_get_transport (session, transport_url ? transport_url : input->xport_uri, ex); g_free (transport_url); |