From f1c53cfc5ed087c78c69915ddcb60b0e43ea42cc Mon Sep 17 00:00:00 2001 From: mguessan Date: Tue, 20 Mar 2012 00:12:44 +0000 Subject: [PATCH] IMAP: implement RFC822 fetch request git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1929 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/imap/ImapConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index e422c214..d4b8fadf 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -728,7 +728,7 @@ public class ImapConnection extends AbstractConnection { } catch (ParseException e) { throw new DavMailException("EXCEPTION_INVALID_DATE", message.date); } - } else if (param.startsWith("BODY[") || param.startsWith("BODY.PEEK[") || "RFC822.HEADER".equals(param)) { + } else if (param.equals("RFC822") || param.startsWith("BODY[") || param.startsWith("BODY.PEEK[") || "RFC822.HEADER".equals(param)) { // get full param if (param.indexOf('[') >= 0) { StringBuilder paramBuffer = new StringBuilder(param);