Abstracted messaging components for IMAP