use Mail::IMAPClient; my $imap = Mail::IMAPClient->new( Server => $host, User => $id, Password=> $pass, ) or die "Cannot connect to $host as $id: $@"; $imap->select($folder); my @msgs = $imap->unseen(); foreach my $msgid( @msgs ){ ... }
In reply to Re: finding unread emails in IMAP maildir
by davidrw
in thread finding unread emails in IMAP maildir
by chrisj0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |