Disable Thunderbird inline attachments
So after actually getting a complaint about it, I finally got fed up with Thunderbird sending text file attachments as inline attachments. I’d already been annoyed at GMail displaying things I sent myself inline, making it hard to copy diffs (because the amount of whitespace at the end needs to be exactly right) or easily save files.
Here’s how to tell Thunderbird to always send attachments as attachments, instead of inline:
- Open the Thunderbird Preferences (this is under “Preferences” in the Edit menu, or “Options” in the Tools menu, depending on your OS).
- Go to the Advanced section, and the General tab on there.
- Click the Config Editor button on there.
- Enter mail.content_disposition_type in the filter box.
- Double-click the only item in the list (with the exact name mail.content_disposition_type, obviously), and enter 2 as its value (instead of the 0 it’s on originally).
- Close the Config Editor with the [x], and close the Preferences with [OK].
You’re now done. Thunderbird will now send plain text files as an attachment. Any other non-binary files will still be sent inline. If you want all your files to be ‘real’ attachments rather than inline attachments, set the pref to 1 instead. Tip-of-the-hat to Marco for the tip about using 2 instead of 1.
All this information was obtained from LXR and the MozillaZine KB.
June 7th, 2007 at 23:11
Yay! Yay! Now people will believe me when I say that TB displays stuff inline. Mostly, they just tell me Mail.app is broken.
June 8th, 2007 at 02:13
Why didn’t you just tell them you had it on good authority (that is, I said so) that Mail.app was just doing as it was told?
June 8th, 2007 at 02:24
Oh, and according to the source it seems that you can set it to ’2′ and it’ll do more sensible things. http://mxr.mozilla.org/seamonkey/source/mailnews/compose/src/nsMsgCompUtils.cpp#1024 . that should make it send text and some special stuffs as attachments, and the rest (such as images) inline.
June 8th, 2007 at 02:41
I’ve updated the post accordingly. Thanks Marco.
August 7th, 2007 at 13:47
It works perfectly!
Exactly what I’m looking for!
Thank you very much!
October 10th, 2007 at 15:21
Just wanted to say thanks for this. I too thought Mail.app was broken…
Thanks,
Charles
April 29th, 2008 at 16:29
Great post. It is exactly what I was looking for. Thanks a lot!
September 6th, 2008 at 00:31
Thanks! I have no idea why this isn’t the default mode.
February 3rd, 2009 at 10:32
Spanks alot! This explains it all!
I’ve just made my self look really stupid infront of my boss, failing to send him an attachment like five times in a row. Now I realise that he had the attachment inline and cut off in his client.
While spewing on Thunderbird. Have you noticed that it freezes the entire application while checking an imap-account? Every minute my typing stops for 5-10 seconds while waiting on sync. That is so annoying!
I should just convert to a real client, but its such a hassle!
April 17th, 2009 at 18:31
very much appreciate this “bug fix” (I’ll hold that any behavior that is that undesirable is a bug), it was definitely a problem as I would (attempt) to ship source code which my recipient would have to copy & paste and report back the annoying “feature” about TBird (which I had been unaware of until then).
So in short “I love it”, although I was not clear about the comment “If you want all your files to be ‘real’ attachments rather than inline attachments, set the pref to 1 instead…”. What is the difference between a ‘real’ attachment and an “inline attachment”, if anyone might offer up a thought?
In short, I do like (love) TBird considerably more so than the rather “heavy” Outlook – although in my perfect world I’d have an app that would cleanly archive all my mail messages to a database so I could confidently empty my inbox frequently, there is probably one out there, so I’ll not try to duplicate it.
Best Regards to All
John
June 24th, 2009 at 17:39
Thanks for the post. As of today, setting the value to 2 did not work for me, whereas setting the value to 1 did.
I am on Thunderbird version 2.0.0.22 (20090605).
July 7th, 2009 at 00:08
I am also using Thunderbird version 2.0.0.22, and it worked perfectly for me.
Thank you.
July 15th, 2009 at 22:29
I tested setting the value to 1 and 2 and keeps loading the XML files that people send me inline… Anyone having any luck with XML’s ?? It takes like 20 sec to load an XML and no one ever sends them in a Zip ;(
Thanks
July 19th, 2009 at 23:57
I’m also using Thunderbird version 2.0.0.22, WinXP (Home) with all updates.
I thought this might be the answer to my problem, but unfortunately,
neither value (1 or 2) works for me, even after re-installing Thunderbird !
Such a shame…
July 21st, 2009 at 12:52
BrianB, Andy: The fix is to do with the documents you send, not the ones you receive. If people send you things inline that shouldn’t be send as such, your best bet is to ask them to configure their e-mail client better, as far as I can tell…
August 21st, 2009 at 03:23
[...] Via gijsk. [...]
November 3rd, 2009 at 13:24
First (joking) if it isn’t inline – is it outline?
Second, shouldn’t the option be handled more along the lines of document types? So people could set in/out for each type of file? Default the line to always being a normal attachment but allow the user to change this selection? Thunderbird does this for other aspects of the program – attachments are just as important.
In any event – I am so happy you made this webpage. Thunderbird just started acting weird on me. Turns out – my option was set to zero(0).
Now it is two(2). Thanks again!
November 6th, 2009 at 22:35
@BrianB, Gijs:
Actually, there’s a setting for that as well:
mail.inline_attachments
set it to false and it might take care of the issue. (for documents you RECEIVE)
November 11th, 2009 at 01:18
Another fix that is not shown. In the config editor there is a value that says: mail attachments inline – boolean- true.
Change this value to “False”. I typed “attac” into the filter to narrow the results. This worked for my .DXF issue!
June 3rd, 2010 at 08:02
thank you!