Utilities for managing IMAP email messages