added plain text code

This commit is contained in:
gotbletu 2017-06-02 20:51:48 -07:00
parent 73217c4c76
commit 02cb1c0fa7

View File

@ -6,23 +6,23 @@ Preview and Render HTML emails, both in commandline or in a GUI web browser
### install requirements
mutt
### muttrc
vim ~/.muttrc
# open in gui browser: hit "v" then go down to text/html then hit "m"
# open in gui browser: hit "v" then go down to text/html then hit "m" or "Enter"
bind attach <return> view-mailcap
auto_view text/html # view html automatically
alternative_order text/plain text/enriched text/html # list html for last
### mailcap
vim ~/.mailcap
# text/html; chromium %s &; test=test -n "$DISPLAY"; needsterminal;
# text/html; chromium %s; test=test -n "$DISPLAY"; needsterminal;
# text/html; w3m -I %{charset} -T text/html; copiousoutput;
text/html; "$BROWSER" %s &; test=test -n "$DISPLAY"; needsterminal;
text/html; "$BROWSER" %s; test=test -n "$DISPLAY"; needsterminal;
text/html; "$BROWSERCLI" -I %{charset} -T text/html; copiousoutput;
text/plain; cat %s; copiousoutput
### references
- http://jasonwryan.com/blog/2012/05/12/mutt/