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

IMAP Import - decoded filename as specified in RFC 2047, Section 6.1. #202

Closed
rsoika opened this issue Jan 16, 2024 · 0 comments
Closed
Labels
Milestone

Comments

@rsoika
Copy link
Member

rsoika commented Jan 16, 2024

If a imap mail contains an encoded filename we do not detect it as we do not decode it using the algorithm specified in RFC 2047, Section 6.1.
This leads to situations, where pdf attachments are not detached.

Example for a encoded filename:

Content-Disposition: attachment; filename=
	"=?iso-8859-1?Q?240108=5F352-01=5FTSP=5FRG#23120492_Lieferung_und_Montage_?=
 =?iso-8859-1?Q?Drucker_L=FCftungszentrale.pdf?="; size=587260;
	creation-date="Mon, 08 Jan 2024 08:38:48 GMT";
	modification-date="Mon, 08 Jan 2024 08:41:23 GMT"

This can easily be done by using

fileName = MimeUtility.decodeText(fileName);
@rsoika rsoika added the bug label Jan 16, 2024
@rsoika rsoika added this to the 3.0.1 milestone Jan 16, 2024
rsoika added a commit that referenced this issue Jan 16, 2024
Issue #202
@rsoika rsoika closed this as completed Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant