diff options
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-ops.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 78a3e462cf..30bf75932e 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +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. + 2001-01-19 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_generate_reply): If the name is empty 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); |