in reply to How to stop get_rfc822_body method of Net::IMAP::Client package to mark an unread email as read ?
Looking at the get_rfc822_body code in Net::IMAP::Client and the FETCH section in RFC 3501 (pp. 53-57), I think this is part of the IMAP spec: "The \Seen flag is implicitly set; if this causes the flags to change, they SHOULD be included as part of the FETCH responses.".
There is a BODY.PEEK data item for the FETCH command that, unlike BODY (and thus RFC822, which is what this function uses), will avoid setting the flag. The module does not currently appear to support getting message bodies that way, but maybe the author could be persuaded to add that functionality.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to stop get_rfc822_body method of Net::IMAP::Client package to mark an unread email as read ?
by pankaj_it09 (Scribe) on May 13, 2014 at 10:07 UTC | |
by AppleFritter (Vicar) on May 13, 2014 at 10:25 UTC | |
by kcott (Archbishop) on May 14, 2014 at 08:22 UTC | |
by Corion (Patriarch) on May 14, 2014 at 09:17 UTC | |
by pankaj_it09 (Scribe) on May 13, 2014 at 11:48 UTC |