+2007-08-09 Sankar P <psankar@novell.com>
+
+ * camel-imap-folder.c: (parse_fetch_response):
+ To handle IMAP Server brokenness, Returning empty body, etc.
+ Fixes #355640 and a lot of duplicates as well.
+
2007-07-09 Gilles Dartiguelongue <gdartigu@svn.gnome.org>
* camel-imap-folder.c: (do_append), (decode_internaldate),
response = strchr (response, ' ') + 1;
start = response;
imap_skip_list ((const char **) &response);
- g_datalist_set_data_full (&data, "BODY", g_strndup (start, response - start), g_free);
+ if (response && (response != start)) {
+ /* To handle IMAP Server brokenness, Returning empty body, etc. See #355640 */
+ g_datalist_set_data_full (&data, "BODY", g_strndup (start, response - start), g_free);
+ }
} else if (!g_ascii_strncasecmp (response, "UID ", 4)) {
int len;