Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

More efficient way to get unseen IMAP messages

by captkirk (Acolyte)
on Apr 30, 2006 at 23:37 UTC ( #546613=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            for (my $i = 1; $i <= $tmessages; $i++) {
                    if (!$imap->seen($i)) {
                            $nmessages++;
                    }
            }
    
  2. or download this
    use IO::Socket::SSL;
    use Mail::IMAPClient;
    
    ...
    if (!$imap->login) {
            die "Couldn't authenticate: $@\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://546613]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2020-02-21 19:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (97 votes). Check out past polls.

    Notices?