javamail - How do I ensure that the SEEN flag on an IMAP email message is not automatically marked as SEEN on doing getContent -
i dealing bad connection external imap server. need application download messages mail server periodically. on many occasions, code has downloaded message using javamail , has executed message.getcontent , processing individual body parts (attachments). while in process of doing this, connection can drop.
i need make sure messages not marked seen automatically on doing message.getcontent, how javamail behaves, described in reply here: https://stackoverflow.com/a/7679091/303106
is there way make sure messages not downloaded not marked seen?
message msg = ...; ((imapmessage)msg).setpeek(true);
Comments
Post a Comment