issues@javamail.java.net

[Bug 4581] Some messages are marked as read after getting their content

From: <bugzilla-daemon_at_kenai.com>
Date: Mon, 7 Nov 2011 18:58:43 +0000 (GMT)

http://kenai.com/bugzilla/show_bug.cgi?id=4581


Bill Shannon <shannon_at_kenai.com> changed:

           What |Removed |Added
----------------------------------------------------------------------------
             Status|NEW |RESOLVED
         Resolution| |INVALID




--- Comment #1 from Bill Shannon <shannon_at_kenai.com> 2011-11-07 18:58:41 ---
It's normal for the IMAP server to mark your message as read when you access
the content of the message. If that's not the behavior you want, there are
several workarounds:

1. Open the mailbox read-only.
2. Save and restore the SEEN flag after accessing the message.
   (Assumes no other clients are accessing the same messages.)
3. ((IMAPMessage)msg).setPeek(true) before accessing the message content.

-- 
Configure bugmail: http://kenai.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.