I used "del_flags" method to remark the email as unread but thought that there might be a better way.use Net::IMAP::Client; $imap->login or die('Login failed: ' . $imap->last_error); $imap->select('INBOX'); my $messages = $imap->search('ALL'); foreach my $msg (@$messages) { my $data = $imap->get_rfc822_body($msg); }
In reply to How to stop get_rfc822_body method of Net::IMAP::Client package to mark an unread email as read ? by pankaj_it09
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |