multiple fixes to add a watchdog on the imap thread, handle various race conditions and exceptions; logging
multiple fixes to add a watchdog on the imap thread, handle various race conditions and exceptions; logging

yiftee/mail_room