Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base64 decode param and recognize single file mails as attachment #224

Merged
merged 3 commits into from
Jul 1, 2022
Merged

Conversation

engelant
Copy link

While decode_param() checks for base64 encodig, it actually never was decoded. Works at least for my limited test cases.

Also I encountered messages, which are not multipart and consist only of an attachment. I handled that for application/pdf files. It could be possible to allow a lot more types (or just make an unconditional else), but I'm not certain.

Anton Engelhardt added 3 commits June 24, 2022 22:50
while there seems to be a check for base64 encoding (idicated by "B"),
the string was never decoded.
There are some mails, which only consist of attachment without a body.
This takes care of application/pdf attachments.
For attachment only email with base64 encoded filename
@martinrusev martinrusev merged commit 3292585 into martinrusev:master Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants