mail icon indicating copy to clipboard operation
mail copied to clipboard

include rfc822 as attachments

Open ahorek opened this issue 4 years ago • 6 comments

the original feature https://github.com/mikel/mail/commit/1e665e44448ded500b7bf5b82119e9fe7f40bd58

email -> eml -> png

before

attachments: png

after

attachments: eml, png

I'm not sure what the correct behavior should be. For instance, Thunderbird includes eml as an ordinary attachment but some other clients don't even if Content-Disposition: attachment;. Thoughts?

ahorek avatar Apr 21 '20 15:04 ahorek

@ahorek Thanks a tonne for this patch!

I ran into a problem where Mail wouldn't recognise .eml attachments. Before applying your patch.

mail.attachments["foo.eml"] = {mime_type: "message/rfc822", content: "..."}
mail.attachments # => []

And after applying your patch:

mail.attachments["foo.eml"] = {mime_type: "message/rfc822", content: "..."}
mail.attachments # => [..]

Using the attachment? predicate to determine whether or not it should be included in the list makes a tonne of sense.

tatey avatar Aug 06 '20 11:08 tatey

Hello! This patch is great and works well. Is there any reason why it hasn't been merged into a release?

brianknight10 avatar Jul 29 '21 15:07 brianknight10

@mikel @jeremy Is there anything I/we can do to support resolving this issue und releasing a new version of this gem?

der-flo avatar Mar 04 '22 15:03 der-flo

@mikel what's your take on this? What can we do to help you resolve this issue?

svenwin avatar May 06 '22 14:05 svenwin

Hey there @svenwin @der-flo @brianknight10 @tatey and of course @ahorek - could one of you please get this rebased onto the latest master and I'll review and merge it then.

mikel avatar Dec 03 '22 09:12 mikel

sure thing! done

ahorek avatar Dec 03 '22 10:12 ahorek