diff options
author | Dan Winship <danw@src.gnome.org> | 2001-03-16 05:09:54 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-03-16 05:09:54 +0800 |
commit | e1fc4b4362dfb3596b68c3e7510263058338ce84 (patch) | |
tree | 385254ad16514b5fe40ab0459afb2dc0e7c29b1e /camel/providers | |
parent | 1f9d06c2aac1805bbd3922991d8332b44f16ad3e (diff) | |
download | gsoc2013-evolution-e1fc4b4362dfb3596b68c3e7510263058338ce84.tar gsoc2013-evolution-e1fc4b4362dfb3596b68c3e7510263058338ce84.tar.gz gsoc2013-evolution-e1fc4b4362dfb3596b68c3e7510263058338ce84.tar.bz2 gsoc2013-evolution-e1fc4b4362dfb3596b68c3e7510263058338ce84.tar.lz gsoc2013-evolution-e1fc4b4362dfb3596b68c3e7510263058338ce84.tar.xz 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.c | 4 |
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)); |