ork / mutt-office365

A mutt configuration file ready for Office 365
309 stars 56 forks source link

HTML E-Mail / Formatting #12

Open chadothompson opened 7 years ago

chadothompson commented 7 years ago

First - this is fantastic. I was able to get mutt running with Office 365 pretty easily.

What I'm having trouble with: Office 365 seems to send HTML e-mail (which seems to be 'all of it') as an attachment - do you have an easy way / method for viewing or reading HTML e-mail 'in line'? (I tried the w3m -> mailcap method, which doesn't seem to work now that we are Office 365 users...)

edgardleal commented 6 years ago

If any one wants to read html email before the solution "inline", just create the file ~/.mailcap with the following content:

text/html; lynx -dump -width=78 -nolist %s | sed ‘s/^   //’; copiousoutput; needsterminal; nametemplate=%s.html

PS: you need have the program lynx installed ! PS[1]: I don't know why put this content in muttrc PS[2]: I think that is needed to check if linx is installed to avoid errors

fleetside72 commented 4 years ago

Also, here is an article about html in email http://jasonwryan.com/blog/2012/05/12/mutt/

I followed the instructions there and works good. will need w3m (like lynx)

auto_view text/html                                      # view html automatically
alternative_order text/plain text/enriched text/html     # save html for last

and this to mailcap or create if it doesn't exist:

text/html; w3m -I %{charset} -T text/html; copiousoutput;