Commit 8d99aac2 authored by Mickaël Guessant's avatar Mickaël Guessant

IMAP: mark message seen only if unseen

git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@2455 3d1905a2-6b24-0410-a738-b14d5a86fcbd
parent 3cb78899
......@@ -857,7 +857,7 @@ public class ImapConnection extends AbstractConnection {
}
} else if ("RFC822".equals(param) || param.startsWith("BODY[") || param.startsWith("BODY.PEEK[") || "RFC822.HEADER".equals(param)) {
if (param.startsWith("BODY[")) {
if (param.startsWith("BODY[") && !message.read) {
// According to IMAP RFC: The \Seen flag is implicitly set
updateFlags(message, "FLAGS", "\\Seen");
message.read = true;
......
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