aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-10-18 20:30:34 +0800
committerMilan Crha <mcrha@redhat.com>2012-10-18 20:30:34 +0800
commit7050a12868252cf6254620cd27dcb6832851040d (patch)
treed9bd23c86ed671bd110ebaf894acf64d48d50dfe /mail
parent3d06be9671085e99ebc37a89acd394255a9d0ff0 (diff)
downloadgsoc2013-evolution-7050a12868252cf6254620cd27dcb6832851040d.tar
gsoc2013-evolution-7050a12868252cf6254620cd27dcb6832851040d.tar.gz
gsoc2013-evolution-7050a12868252cf6254620cd27dcb6832851040d.tar.bz2
gsoc2013-evolution-7050a12868252cf6254620cd27dcb6832851040d.tar.lz
gsoc2013-evolution-7050a12868252cf6254620cd27dcb6832851040d.tar.xz
gsoc2013-evolution-7050a12868252cf6254620cd27dcb6832851040d.tar.zst
gsoc2013-evolution-7050a12868252cf6254620cd27dcb6832851040d.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
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-request.c3
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,