aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-03-16 05:09:54 +0800
committerDan Winship <danw@src.gnome.org>2001-03-16 05:09:54 +0800
commite1fc4b4362dfb3596b68c3e7510263058338ce84 (patch)
tree385254ad16514b5fe40ab0459afb2dc0e7c29b1e /camel/providers
parent1f9d06c2aac1805bbd3922991d8332b44f16ad3e (diff)
downloadgsoc2013-evolution-e1fc4b4362dfb3596b68c3e7510263058338ce84.tar.gz
gsoc2013-evolution-e1fc4b4362dfb3596b68c3e7510263058338ce84.tar.zst
gsoc2013-evolution-e1fc4b4362dfb3596b68c3e7510263058338ce84.zip
translate NIL to "" in fetch body part response
svn path=/trunk/; revision=8744
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-folder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 2a99df8149..6d944747c9 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -1216,11 +1216,13 @@ parse_fetch_response (CamelImapFolder *imap_folder, char *response)
}
body = imap_parse_nstring (&response, &body_len);
- if (!body) {
+ if (!response) {
g_free (part_spec);
break;
}
+ if (!body)
+ body = g_strdup ("");
g_datalist_set_data_full (&data, "BODY_PART_SPEC", part_spec, g_free);
g_datalist_set_data_full (&data, "BODY_PART_DATA", body, g_free);
g_datalist_set_data (&data, "BODY_PART_LEN", GINT_TO_POINTER (body_len));