Fix failing imap tests, silence errors causing failures