From 135baf56e4dd8fef807e43ae0c35869bfba50396 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 5 Dec 2000 22:20:10 +0000 Subject: use BODY.PEEK[] rather than RFC822, so the message doesn't get marked as * providers/imap/camel-imap-folder.c (imap_get_message): use BODY.PEEK[] rather than RFC822, so the message doesn't get marked as \Seen. svn path=/trunk/; revision=6800 --- camel/ChangeLog | 6 ++++++ camel/providers/imap/camel-imap-folder.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 0082e38a61..b01b0b3c4f 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-12-05 Dan Winship + + * providers/imap/camel-imap-folder.c (imap_get_message): use + BODY.PEEK[] rather than RFC822, so the message doesn't get marked + as \Seen. + 2000-12-05 Dan Winship * providers/imap/camel-imap-folder.c (imap_set_message_flags): Fix diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 5d882856e2..4fdfd6cb4f 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -564,14 +564,14 @@ imap_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex) int len; response = camel_imap_command (store, folder, ex, - "UID FETCH %s RFC822", uid); + "UID FETCH %s BODY.PEEK[]", uid); if (!response) return NULL; result = camel_imap_response_extract (response, "FETCH", ex); if (!result) return NULL; - p = strstr (result, "RFC822"); + p = strstr (result, "BODY[]"); if (p) { p += 7; mesg = imap_parse_nstring (&p, &len); -- cgit v1.2.3