On Thu, May 18, 2023 at 07:53:50PM -0400, José María Mateos <ch...@rinzewind.org> wrote:
> Hi everybody, > > Lately I've been receiving mail in which the text/plain part and the > text/html part are at odds. This is typically caused by generator software > that ignores text/plain, or uses some old version, etc. > > Today I changed my settings to view text/html first via w3m, but I'm not > entirely comfortable with this. > > What I'd really like to do is: > > 1. Display text/plain by default. > 2. If I'm not convinced by that version, press some key and then text/html > is displayed inline (using w3m, lynx, links, or whatever in the ~/.mailcap > file). > 3. If that's still not good enough, use a macro I already have to run > mutt_bgrun and display that mail using Firefox directly. > > I don't know if point 2 is a possibility, to be honest. Does anyone know if > this can be done? > > Thanks a lot, > > -- > José María (Chema) Mateos || https://rinzewind.org I think you can setup two ways of handling an attachment, one for "viewing" and one for "printing". You can make the "view" command treat it as text/plain and make the "print" command treat it as text/html, but I don't remember the details on how to do this. Does anyone else remember? cheers, raf