I have probably poorly expressed my question, but no: I'm not trying to implement a server logic. I'm implementing a client that connect to an IMAP server, fetches for new messages and (in the full version of the program) applies some rule to incoming messages. It is a similar behaviour to any email client programs like Thunderbird for example.
When I speak about connection problems I mean client connection problems, infact I naively simulated such problem disconnecting the ethernet cable of my pc where my perl imap client is running.
The above code shows my problem: the client provided by Mail::IMAPClient seems unbale to restablish the connection after reaching the IsDisconnected state. I'd like to recover the connection to the server instead of barely exiting the perl imap client program.
L*
In reply to Re^2: Handling reconnection with Mail::IMAPClient
by Discipulus
in thread Handling reconnection with Mail::IMAPClient
by Discipulus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |