Exposing attachment data

Exposing the raw_decoded attachments and their types is preferable to writing them to a directory. Use case: Forwarding imap mails with their attachments.