[kdepim-users] KMail not showing content of older email unless I go menu View-View Source

Erik Quaeghebeur kdepim-users at equaeghe.nospammail.net
Tue Dec 2 21:04:26 GMT 2014


O. Sinclair:
>
> [...] for now I have tried saving one of these
> mails (that creates a something.mbox file) and to my surprise the
> "kmailviewer" informs me it is multipart but only one part will be
> shown... and then views it perfectly!

Which part does it show, the plain text or html? It may be that it defaults to plain, but tries the html part first because of your settings.

> I simply edited away the html part (there is plain text and then an html
> part), saved it and imported it and that works. Though that is VERY
> tedious work given the amount of email I am dealing with here.

I wrote a Python script that can be used with the KMail ‘pipe through’ filter to do just this, reduce multipart/alternative to its text/plain part. See 

	https://github.com/equaeghe/mailfilters

and in particular the alternative2.py script (and its alternative2plain symlink). Test this first on the command line to see if it does what you want. Afterwards, I do hope it will be useful, but you of course use it at your own risk (greatly reduced by applying it to message copies and not the original).

> Wish there was (at least) a way to do it from inside KMail or some
> setting "with multipart only show one part" if you get what I mean

In my setup (version 4.12.5), plain text is standard, and html (if parsed correctly) is an ‘HTML status bar’-click away...

First go to

	Settings > Configure KMail >

then there are two places with relevant settings

	1. ‘Appearance’ (I have a non-English version and the language switch back to US-English seems incomplete) > Show Message Window > activate ‘show HTML status bar’

	2. ‘Security’ (...) > Reading > deactivate ‘prefer HTML to plain text’


Best,

Erik
_______________________________________________
KDE PIM users mailing list
Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users


More information about the kdepim-users mailing list