TMB-1 : IMAP server connection (handle attachments and refactor body handling)