[] 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:

  1. Open the Thunderbird Preferences (this is under “Preferences” in the Edit menu, or “Options” in the Tools menu, depending on your OS).
  2. Go to the Advanced section, and the General tab on there.
  3. Click the Config Editor button on there.
  4. Enter mail.content_disposition_type in the filter box.
  5. 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).
  6. 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.

7 Responses to “Disable Thunderbird inline attachments”

  1. Nadya Says:

    Yay! Yay! Now people will believe me when I say that TB displays stuff inline. Mostly, they just tell me Mail.app is broken.

  2. Marco Says:

    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?

  3. Marco Says:

    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.

  4. Gijs Says:

    I’ve updated the post accordingly. Thanks Marco. :-)

  5. deste Says:

    It works perfectly!
    Exactly what I’m looking for!

    Thank you very much!

  6. Charles Churchill Says:

    Just wanted to say thanks for this. I too thought Mail.app was broken…

    Thanks,
    Charles

  7. Sbnb Says:

    Great post. It is exactly what I was looking for. Thanks a lot!

Leave a Reply