mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-14 06:58:19 -05:00
IMAP: implement RFC822.HEADER for Sylpheed
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@861 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
cf1b927d7e
commit
7078a8de0c
@ -515,7 +515,7 @@ public class ImapConnection extends AbstractConnection {
|
||||
} catch (ParseException e) {
|
||||
throw new DavMailException("EXCEPTION_INVALID_DATE", message.date);
|
||||
}
|
||||
} else if ("BODY.PEEK[HEADER]".equals(param) || param.startsWith("BODY.PEEK[HEADER")) {
|
||||
} else if ("BODY.PEEK[HEADER]".equals(param) || param.startsWith("BODY.PEEK[HEADER") || "RFC822.HEADER".equals(param)) {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
PartOutputStream partOutputStream = new PartOutputStream(baos, true, false, 0);
|
||||
message.write(partOutputStream);
|
||||
@ -524,6 +524,8 @@ public class ImapConnection extends AbstractConnection {
|
||||
buffer.append(" RFC822.SIZE ").append(partOutputStream.size);
|
||||
if ("BODY.PEEK[HEADER]".equals(param)) {
|
||||
buffer.append(" BODY[HEADER] {");
|
||||
} else if ("RFC822.HEADER".equals(param)) {
|
||||
buffer.append(" RFC822.HEADER {");
|
||||
} else {
|
||||
buffer.append(" BODY[HEADER.FIELDS ()] {");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user