The IMAP4 class constructor has a conn_lost_cb parameter. Strangely enough the IMAP4_SSL class constructor does not have one, and it passes None as the conn_lost_cb parameter to the IMAP4 constructor. This is annoying when one does want to use a callback to handle an IMAP4 SSL connection loss. By just adding this parameter to the IMAP4_SSL constructor like this
The IMAP4 class constructor has a conn_lost_cb parameter. Strangely enough the IMAP4_SSL class constructor does not have one, and it passes None as the conn_lost_cb parameter to the IMAP4 constructor. This is annoying when one does want to use a callback to handle an IMAP4 SSL connection loss. By just adding this parameter to the IMAP4_SSL constructor like this
I have been able to use it with success and no visible downside, so I would suggest incorporating this modification into the source code.