Decode base64 encoded e-mail attachment filename.
requested to merge corneliusludmann/mayan-edms:feature/decode-base64-encoded-attachment-filename into development
According to RFC 2231 the filename of e-mail attachments can be encoded, e.g. with base64 (for example, the Brother ADS2800W Scanner does this).
Here an example how it looks like:
Content-Disposition: attachment; filename="=?UTF-8?B?QlJXMjg1NjVBOEI5RkQyXzIwMTcwNTIzXzIzMDMzN18wMDAzMDMucGRm?="
This merge request handles this situation. It also has a test case.