Home > UNIX > PDF sent from MUTT not seen as attachment in webmail

PDF sent from MUTT not seen as attachment in webmail

Recently I had a report from a user that PDF’s sent from MUTT were not visible from the webmail used by their recipient. I thought this was odd because the very reason I changed from mailx to MUTT was so I could use MIME instead of UUENCODE, thus insure all clients could read attachments.

I verified some of the common webmail clients could receiv a PDF correctly: Hotmail, Yahoo Mail, GMail. All of the before mentioned services worked fine. It was then I was able to get the recipients email address, it was a Charter account. This is not the first time I’ve had problems with Charter receiving email. I’m not sure what Charter users for its webmail, but it seems to be worse bit of code I’ve ever encountered for email usage.

Charter accounts are able to view PDF’s sent from Outlook and other clients. What I found is that MUTT sends all emails with the following set in the header:

Content-Disposition: inline

With further testing I found that no matter what is attached to the email Charter will interpret the whole email as one long text file. The content disposition is not user editable in MUTT, and has been confirmed in their bug tracker as a new enhancement.

There is a patch someone created to fix this (for PGP, but works for this as well). However it looks like the MUTT project group is unlikely to change the default behavior because according to the RFC the client software should be able to detect attachments correctly no matter what (this is very over-simplified, read the RFC if you want a longer explanation).

My solution in this case to ignore the problem. With only one recipient being affected it did not warrant time/resources to find a solution. After knowing about the problem we were able to get the customer use a client instead of webmail.

Categories: UNIX
  1. March 27, 2013 at 03:57

    I absolutely love your blog and find nearly all of your post’s to be just what I’m looking for.
    Would you offer guest writers to write content for you personally?
    I wouldn’t mind publishing a post or elaborating on many of the subjects you write regarding here. Again, awesome site!

  2. April 1, 2013 at 07:08

    Hi terrific blog! Does running a blog such as this require a lot of work?
    I’ve absolutely no expertise in computer programming but I was hoping to start my own blog soon. Anyhow, if you have any ideas or tips for new blog owners please share. I know this is off topic nevertheless I simply wanted to ask. Thanks!

  3. April 1, 2013 at 16:23

    First off I would like to say wonderful blog! I had a quick
    question in which I’d like to ask if you don’t mind.

    I was interested to know how you center yourself and clear your thoughts prior to writing.
    I’ve had trouble clearing my mind in getting my thoughts out there. I do take pleasure in writing however it just seems like the first 10 to 15 minutes are usually wasted simply just trying to figure out how to begin. Any suggestions or hints? Thanks!

  4. April 2, 2013 at 01:38

    Nice post. I used to be checking constantly this blog and I am inspired!
    Very helpful information particularly the remaining part :
    ) I maintain such info a lot. I used to be seeking this particular info for a long time.

    Thank you and best of luck.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: