Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

Fix inline attachments #28

Merged
merged 3 commits into from
Sep 14, 2012
Merged

Conversation

jonleighton
Copy link
Contributor

Please see my commentary on #17. This is a fix which includes a test. I've also made a couple of commits which were necessary for me to successfully be able to run the tests, hope that's ok.

This essentially supersedes #17 so that can be closed if this gets merged.

TMail doesn't work on 1.9.
The top-level parts aren't necessarily where the relevant e.g. text/html
part actually is. For example there might be a top-level
multipart/alternative container which contains the text/html. This
happens when Action Mailer is used with inline attachments.
jeremy added a commit that referenced this pull request Sep 14, 2012
@jeremy jeremy merged commit 6a4bc7f into basecamp:master Sep 14, 2012
@afeld
Copy link

afeld commented Apr 10, 2014

Is there a trick I'm missing to getting these to display? The inline attachments work fine when sent to GMail, but not in MailView.

screen shot 2014-04-10 at 12 55 17 am

via afeld/tricle#60

@rajsite
Copy link

rajsite commented Jun 3, 2014

I see the same behavior as @afeld using mail_view 2.0.4, rails 4.0.4. The mail_view page shows the inline attachment in the Attachments list but the page renders using the cid url for the image.

I can see how this may be expected behavior but then it would be useful to be able to cross-reference the cid and verify the inline attachment is referenced correctly in the attachment list.

Alternatively, rendering the inline content as a data-uri, etc. might give the best visualization experience.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants