http://qs321.pair.com?node_id=1058656

helpo11 has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

Here's my dilemma, I use Mail::IMAPClient to access and clean out my imap messages once a week; however, after a certain amount of messages it fails to do anything. I do get the error message, Trying command when NOT connected! at /usr/local/share/perl/5.10.1/Mail/IMAPClient.pm line 118....

Though I am to able to manually log into imap and remove the messages manually, and rerun the script without any issues.

Is the there a limitation on the amount of messages, IMAPClient can handle? i.e. expunge or store in deleted folder

Is Net::IMAP::Simple a better option?