laziness, impatience, and hubris | |
PerlMonks |
Re^2: Handling reconnection with Mail::IMAPClient -- solvedby Discipulus (Canon) |
on Jan 27, 2023 at 08:37 UTC ( [id://11149919]=note: print w/replies, xml ) | Need Help?? |
Hello markong, thanks! even more useful is the reconnect method I totally missed from the module documentation. As the module Carp::cluck on error issuing imap commands, then the $imap->noop seems to be a sane command to try. The following code acts as expected and reconnect to the imap server:
L* PS January 31: see the definitive program
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|