Help for this page

Select Code to Download


  1. or download this
    #!perl
    use strict;
    use Mail::IMAPClient;
    ...
    foreach(@results) {print "Result : \"$_\"\n";}
    
    print "Inbox count : ".$imap->message_count('inbox');
    
  2. or download this
    Search error
    Result : "2 UID SEARCH SUBJECT test
    ...
    Result : "2 BAD SEARCH command received in invalid state.
    "
    Inbox count : 6