Commit 0a3ff4b9 authored by Mickaël Guessant's avatar Mickaël Guessant

IMAP: fix #629 Read email doesn't stay read. According to IMAP RFC: The \Seen...

IMAP: fix #629 Read email doesn't stay read. According to IMAP RFC: The \Seen flag is implicitly set

git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@2453 3d1905a2-6b24-0410-a738-b14d5a86fcbd
parent 04fdff2b
......@@ -856,6 +856,13 @@ public class ImapConnection extends AbstractConnection {
throw new DavMailException("EXCEPTION_INVALID_DATE", message.date);
}
} else if ("RFC822".equals(param) || param.startsWith("BODY[") || param.startsWith("BODY.PEEK[") || "RFC822.HEADER".equals(param)) {
if (param.startsWith("BODY[")) {
// According to IMAP RFC: The \Seen flag is implicitly set
updateFlags(message, "FLAGS", "\\Seen");
message.read = true;
}
// get full param
if (param.indexOf('[') >= 0) {
StringBuilder paramBuffer = new StringBuilder(param);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment