Sketched out some interfaces for future IMAP (and Maildir?) support.