Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails 3 ActionMailer attachments incorrectly shown inline by Yahoo! Mail

#6514

I sent attachments to Yahoo mail from a few different sources and I tried different content types, transfer encodings (e.g., Base64), different kinds of attachments, etc. The only constant I can find between those that Yahoo shows properly and those it fails on is that the successes do not use parameter folding, e.g.,

Success

Content-Disposition: attachment; filename="event.ics"

Fail

Content-Disposition: attachment;
filename="event.ics"

This (correct) folding appears to be hardwired into the mail gem that Rails uses and I didn't try another way of truly isolating it; I have to say I'd be surprised if that were really the problem.

Regardless, Yahoo is rendering non-inline attachments as inline, so if this is a significant problem for your customer base, I'd take it up with Yahoo directly; maybe they'll fix it or offer you a more concrete statement about what triggers it so you can work around it. For what it's worth, Yahoo does allow the user to access the attachment correctly as it should with Content-Disposition of "attachment"; it's just also showing it as if the Disposition where "inline."

The problem is with New yahoo mail. (Claasic yahoo, Gmail, Hotmail every where its fine.)
Detailed stuff is present here

[Stackoverflow Question](http://stackoverflow.com/questions/5062531/rails-3-actionmailer-att... "Stackoverflow Question"

Reported by Mohit Jain · March 3rd, 2011 @ 11:45 PM

State: new
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Andrew White
    Andrew White
    • Importance changed from to Low

    The RFC talks about parameter values of less than 78 characters being presented as a single token - what happens if you send a file with a really long name?

    March 4th, 2011 @ 07:26 AM