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.
In reply to Re: How to stop get_rfc822_body method of Net::IMAP::Client package to mark an unread email as read ?
by AppleFritter
in thread How to stop get_rfc822_body method of Net::IMAP::Client package to mark an unread email as read ?
by pankaj_it09
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |