Skip to content

Instantly share code, notes, and snippets.

@rochacbruno
Created December 25, 2012 09:22
Show Gist options
  • Save rochacbruno/4372432 to your computer and use it in GitHub Desktop.
Save rochacbruno/4372432 to your computer and use it in GitHub Desktop.
.muttrs to be used with mutt mail client and gmail
#set from = "xxxx@gmail.com"
#set realname = "xxx"
#set imap_user = "xxxx@gmail.com"
#set imap_password = "xxxx"
#set folder = "imaps://imap.gmail.com:993"
#set spoolfile = "+INBOX"
#set postponed ="+[Gmail]/Drafts"
#set trash = "imaps://imap.gmail.com/[Gmail]/Trash"
#set header_cache =~/.mutt/cache/headers
#set message_cachedir =~/.mutt/cache/bodies
#set certificate_file =~/.mutt/certificates
#set smtp_url = "smtp://xxxxxx@smtp.gmail.com:587/"
#set smtp_pass = "xxxx"
#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"
#set move = no #Stop asking to "move read messages to mbox"!
#set imap_keepalive = 900
# A basic .muttrc for use with Gmail
set sleep_time=0
# Change the following six lines to match your Gmail account details
set imap_user = "xxxxx@gmail.com"
set imap_pass = "xxxxx"
set smtp_url = "smtp://xxxxx@smtp.gmail.com:587/"
set smtp_pass = "xxxxx"
set from = "xxxxx@gmail.com"
set realname = "xxxxxx"
# Change the following line to a different editor you prefer.
#set editor = "vim"
# Basic config, you can leave this as is
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set imap_check_subscribed
set hostname = gmail.com
set mail_check = 120
set timeout = 300
set imap_keepalive = 300
set postponed = "+[Gmail]/Drafts"
set record = "+[Gmail]/Sent Mail"
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set move = no
set include
set sort = 'threads'
set sort_aux = 'reverse-last-date-received'
set auto_tag = yes
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
alternative_order text/plain text/enriched text/html *
auto_view text/html
bind editor <Tab> complete-query
bind editor ^T complete
bind editor <space> noop
# Gmail-style keyboard shortcuts
macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n <delete-message>" "Gmail delete message"
macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
#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= 10 # how large is the index window?
#set sort = 'threads'
#set sort_aux = 'last-date-received'
# My Editor
set editor='vim + -c "set textwidth=72" -c "set wrap" -c "set nocp" -c "?^$"'
# My Rolodeck :)
#set alias_file= ~/.mutt/aliases
#set sort_alias= alias
#set reverse_alias=yes
#source $alias_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment