IMAP: insert support for base64 attachment payload

This patch adds support for encoded binary attachment contents for the insert. The imapdb.insert command will automatically set the transfer encoding part header when specified. By default expects a text file attachment with utf-8 charset.