diff options
author | Milan Crha <mcrha@redhat.com> | 2012-10-18 20:31:15 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-10-18 20:31:15 +0800 |
commit | ebc86adc4f30f126eae7742df454a6b2a1aac47c (patch) | |
tree | f4e1cfe6860fc850f511c3a085c7eb70540be99c | |
parent | 96777ceb3aad387bc3332ae960a0c2c140b9212f (diff) | |
download | gsoc2013-evolution-ebc86adc4f30f126eae7742df454a6b2a1aac47c.tar.gz gsoc2013-evolution-ebc86adc4f30f126eae7742df454a6b2a1aac47c.tar.zst gsoc2013-evolution-ebc86adc4f30f126eae7742df454a6b2a1aac47c.zip |
Decode EMailRequest::priv::uri_base URI-escaped letters
It's for cases when message UID contains letters which are supposed
to be encoded, like "<>" in NNTP message UIDs. Without the decode
the message preview is left empty and only console shows a runtime
critical warning:
handle_mail_request: assertion `part_list != NULL' failed
-rw-r--r-- | mail/e-mail-request.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/e-mail-request.c b/mail/e-mail-request.c index b0cbedee93..ca92f12769 100644 --- a/mail/e-mail-request.c +++ b/mail/e-mail-request.c @@ -340,7 +340,8 @@ mail_request_send_async (SoupRequest *request, emr->priv->full_uri = soup_uri_to_string (uri, FALSE); uri_str = g_strdup_printf ( "%s://%s%s", uri->scheme, uri->host, uri->path); - emr->priv->uri_base = uri_str; + emr->priv->uri_base = soup_uri_decode (uri_str); + g_free (uri_str); simple = g_simple_async_result_new ( G_OBJECT (request), callback, |