improve logging for unexpected server response, rescue IMAP::NoResponseError, don't send email if database email entry is blank