Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML E-Mail / Formatting #12

Open
chadothompson opened this issue Jan 10, 2017 · 2 comments
Open

HTML E-Mail / Formatting #12

chadothompson opened this issue Jan 10, 2017 · 2 comments
Assignees

Comments

@chadothompson
Copy link

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...)

@ork ork self-assigned this Jan 27, 2017
@edgardleal
Copy link
Contributor

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
Copy link

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants