Revert breaking changes to tests/imap/test_sendmail.py.