in reply to More efficient way to get unseen IMAP messages
Also from the docs:my @unread = $imap->unseen or warn "Could not find unseen msgs: $@\n";
I don't know if these are more efficient runtime-wise, but certainly make the code cleaner..foreach my $f ($imap->folders) { print "The $f folder has ", $imap->unseen_count($f)||0, " unseen messages.\n"; }
|
|---|