oliversm wrote:which shows to me at least that my system recognises that this is a text like file (and it thinks it's C code, which is very close given it's C++). Can I not get thunderbird to make the same conclusion for a given file type?
I'm not aware of a way to do that. There used to be a deprecated way to configure Thunderbird to use file extensions to determine the MIME type but that stopped working many years ago.
This problem is not unique to Thunderbird. My impression is that it effects many email clients.
https://bugzilla.mozilla.org/show_bug.cgi?id=1304908 has a telling comment by a developer: "Yes, well, you could argue that Thunderbird should treat "binary blurb" attachments better. It will go onto the huge pile of enhancement requests that we don't have time for. In the meantime I suggest to set preference mailnews.display.show_all_body_parts_menu and look at all the body parts via View > Message Body As > All Body Parts."
https://bugzilla.mozilla.org/show_bug.cgi?id=517796 is an example of one of those enhancements requests.
I did find a ancient (v3.0 timeframe) bug report -
https://bugzilla.mozilla.org/show_bug.cgi?id=444759 - "Thunderbird does not display pictures with APPLICATION_OCTET_STREAM content-type" that was supposedly fixed.
http://kb.mozillazine.org/Actions_for_a ... file_types mentioned a mime edit add-on, but the author removed it from the add-ons store. I found
https://github.com/dafizilla/firefox-viewsourcewith which claims:
Thunderbird users can
* view the original messages received
* process messages to extract special infos from headers
* view attachments using different applications from default
but it was last updated 5 years ago so I doubt it will work with version 60 or 68.