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

Is it possible to parse attachments as attachments, even if it's marked as "Content-Disposition: inline"? #336

Open
feeedback opened this issue Feb 20, 2023 · 1 comment

Comments

@feeedback
Copy link

Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Content-Type: message/rfc822

....

Now if the attachment type is "Content-Disposition: inline", then the attachment is inserted into the main mail in "html", and the attachment headers are lost, which is inconvenient

@feeedback feeedback changed the title Is it possible to always parse attachments as attachments, even if it's marked as "Content-Disposition: inline"? Is it possible to parse attachments as attachments, even if it's marked as "Content-Disposition: inline"? Feb 20, 2023
@Steltek
Copy link

Steltek commented Nov 20, 2024

Got the same issue with SpamAssassin original message attachments:

------------=_673331EA.273E1C0A
Content-Type: message/rfc822; x-spam-type=original
Content-Description: original message before SpamAssassin
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Received: from [x.x.x.x]
	by y.y with esmtp (Exim 4.98)
	(envelope-from <fakeaddress@domain.com>)
	id 1tAoPB-0000000DjHi-1Zd2
	for myaddress@domain.com;
	Tue, 12 Nov 2024 11:45:57 +0100
From: <fakeaddress@domain.com>
To: "wrongname" <myaddress@domain.com>
Subject: Your personal data has leaked due to suspected harmful activities.

Because they're not returned as attachments, n8n, which uses mailparser, is unable to process them.

Roundcube shows these inline without the headers, and as .eml attachment simultaneously. SnappyMail just shows them as .eml attachment, with none of the text shown inline.

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

No branches or pull requests

2 participants