small fixes for imapMailer