mutt update and html notes

This commit is contained in:
gotbletu 2015-12-18 17:52:11 -08:00
parent 374fd78e71
commit 801cfa3d47
2 changed files with 62 additions and 0 deletions

17
mutt.md
View File

@ -19,6 +19,18 @@ Mutt is a small but very powerful text based program for reading and sending el
GMAIL
> Make sure to enable "IMAP" and "Allow less secure apps" so mutt can work with gmail
> https://mail.google.com/mail/u/0/#settings/fwdandpop
> Enable IMAP
> https://myaccount.google.com/security#activity
> Allow less secure apps: ON
> Some non-Google apps and devices use less secure sign-in technology, which could leave your account vulnerable. You can turn off access for these apps (which we recommend) or choose to use them despite the risks.
vim ~/.mutt/account.com.gmail.gotbletu
@ -34,6 +46,9 @@ GMAIL
set header_cache = ~/.mutt/com.gmail.gotbletu/cache/headers
set message_cachedir = ~/.mutt/com.gmail.gotbletu/cache/bodies
set certificate_file = ~/.mutt/com.gmail.gotbletu/certificates
set ssl_starttls = yes
set ssl_force_tls = yes
YAHOO
@ -152,6 +167,8 @@ set your folder hooks, macros hotkey, default account and text editor
#-------- Basic Config {{{
#------------------------------------------------------
set ssl_starttls = yes
set ssl_force_tls = yes
set imap_check_subscribed
# set hostname = gmail.com
set mail_check = 120

45
mutt_html_rendering.md Normal file
View File

@ -0,0 +1,45 @@
# Mutt HTML Rendering for CLI and GUI
Preview and Render HTML emails, both in commandline or in a GUI web browser
* tutorial video: [Link](https://www.youtube.com/watch?v=Tt-EQxj5k_U)
* offical website: [Link](http://www.mutt.org/)
### install requirements
mutt
### muttrc
vim ~/.muttrc
# open in gui browser: hit "v" then go down to text/html then hit "m"
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; w3m -I %{charset} -T text/html; copiousoutput;
text/html; "$BROWSER" %s &; test=test -n "$DISPLAY"; needsterminal;
text/html; "$BROWSERCLI" -I %{charset} -T text/html; copiousoutput;
### references
- http://jasonwryan.com/blog/2012/05/12/mutt/
### contact
_ _ _ _
__ _ ___ | |_| |__ | | ___| |_ _ _
/ _` |/ _ \| __| '_ \| |/ _ \ __| | | |
| (_| | (_) | |_| |_) | | __/ |_| |_| |
\__, |\___/ \__|_.__/|_|\___|\__|\__,_|
|___/
- http://www.youtube.com/user/gotbletu
- https://twitter.com/gotbletu
- https://plus.google.com/+gotbletu
- https://github.com/gotbletu
- gotbletu@gmail.com