Don't encode attached mails when sending documents as email.

When attached mails (type `message/rfc822`) are encoded again using base64 this causes the Python `email` module to somehow not decode them properly again.

Also, encoding them again is unnecessary, because `rfc822` messages are already safe for transportation via SMTP.
`if mimetype != 'message/rfc822'` :wink: