From 4fccab6c1968979c691a941f767fa5d6b6f09208 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 28 Sep 2000 20:20:56 +0000 Subject: When getting a literal string response, don't include the \r\n after the 2000-09-28 Jeffrey Stedfast * providers/imap/camel-imap-folder.c (imap_get_message): When getting a literal string response, don't include the \r\n after the closing } (as in: "... {798}\r\n...") * providers/imap/camel-imap-stream.c (stream_read): Same. svn path=/trunk/; revision=5621 --- camel/providers/imap/camel-imap-folder.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'camel/providers/imap/camel-imap-folder.c') diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 96236d2374..63ef5b31d1 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -626,6 +626,9 @@ imap_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex) return NULL; } + /* advance to the beginning of the actual data */ + p++; + /* calculate the new part-length */ for (q = p; *q && (q - p) <= part_len; q++) { if (*q == '\n') @@ -681,6 +684,9 @@ imap_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex) return NULL; } + /* advance to the beginning of the actual data */ + p++; + /* calculate the new part-length */ for (q = p; *q && (q - p) <= part_len; q++) { if (*q == '\n') -- cgit v1.2.3