Created
May 27, 2014 18:52
-
-
Save isomorphisms/e8cb41f80371384fbdde to your computer and use it in GitHub Desktop.
configure Mutt to work with Gmail — fast / non-gui / cli alternative to Gmail Web Interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set from = "humility.consulting@gmail.com" | |
set realname = "Humility Consulting" | |
set imap_user = "humility.consulting@gmail.com" | |
set imap_pass = "my password in plaintest" | |
set folder = "imaps://imap.gmail.com:993" | |
set spoolfile = "+INBOX" | |
set postponed = "+[Gmail]/Drafts" | |
set trash = "imaps://imap.gmail.com/[Gmail]/Trash" | |
# http://empt1e.blogspot.com/2009/10/using-mutt-with-gmail-imap-complete.html | |
set imap_check_subscribed=yes | |
set smtp_url = "smtp://humility.consulting@smtp.gmail.com:587" | |
set smtp_pass = "my password in plaintest" | |
#SPECIAL KEYBINDINGS | |
bind editor <space> noop | |
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox" | |
macro index ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail" | |
macro index gs "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to Sent Mail" | |
macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts" | |
macro index tp "<change-folder>=[Gmail]/Important<enter><limit>~p<enter>" "Go to priority inbox" | |
#macro index,pager gS "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages" | |
#macro index y "<move-to-folder | |
#macro index,pager S! "<save-message>=[Gmail]/Spam<enter>" "mark message as spam" | |
#macro index,pager H! "<save-message>=INBOX<enter>" "mark message as ham (not spam)" | |
set move = no #Stop asking to "move read messages to mbox"! | |
set imap_keepalive = 900 | |
set header_cache =~/.mutt/cache/headers | |
set message_cachedir =~/.mutt/cache/bodies | |
set certificate_file =~/.mutt/certificates | |
# Header stuff | |
ignore "Authentication-Results:" | |
ignore "DomainKey-Signature:" | |
ignore "DKIM-Signature:" | |
hdr_order Date From To Cc | |
ignore * | |
unignore from: date subject to cc | |
unignore x-mailing-list: posted-to: | |
unignore x-mailer: | |
# For better looks | |
set markers=no # don't put '+' at the beginning of wrapped lines | |
set pager_index_lines= 5 # how large is the index window? | |
set sort = 'threads' | |
set sort_aux = 'last-date-received' | |
# My Editor | |
set editor='vi' | |
# My Rolodeck :) | |
set alias_file= ~/.mutt/aliases | |
set sort_alias= alias | |
set reverse_alias=yes | |
#source $alias_file | |
# http://www.marksanborn.net/howto/reading-html-email-with-mutt/ | |
auto_view text/html | |
source ~/.gpg.rc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment