diff options
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); |