-
-
Save dougpagani/5784130cb724a5dcd23d4cad4380596f to your computer and use it in GitHub Desktop.
mutt rc file
This file contains hidden or 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
# A basic .muttrc for use with Gmail | |
# Change the following six lines to match your Gmail account details | |
set imap_user = "[email protected]" | |
set copy=yes | |
set smtp_url = "smtps://[email protected]@smtp.gmail.com:465/" | |
set from = "[email protected]" | |
set realname = "shreesh ayachit" | |
# Change the following line to a different editor you prefer. | |
#set edit_headers | |
set editor="mvim -O -f +/^$ ++1 -S ~/.mutt_vimrc" | |
set signature="~/.signature" | |
set reverse_name | |
set [email protected] | |
# 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" | |
mailboxes = +INBOX | |
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 | |
# this is cool, dual text/html mails have only the text part shown | |
alternative_order text/plain text/html * | |
set mailcap_path=~/.mailcap | |
auto_view text/html | |
#set autoedit # start editor without asking for to, subject,... | |
set auto_tag # if something is tagged, run commands on tagged msgs. | |
set fast_reply # do not ask for to, subject,... when replying | |
bind editor <Tab> complete-query | |
bind editor ^T complete | |
bind editor <space> noop | |
# Generic key bindings. | |
bind generic <home> first-entry | |
bind generic <end> last-entry | |
bind generic <left> previous-entry | |
bind generic <right> next-entry | |
# Specific key bindings. | |
bind index "{" previous-thread | |
bind index "}" next-thread | |
bind index <up> previous-entry | |
bind index <down> next-entry | |
#bind alias " " tag-entry | |
bind pager <home> top | |
bind pager "g" top | |
bind pager <end> bottom | |
bind pager "G" bottom | |
bind pager "{" previous-thread | |
bind pager "}" next-thread | |
bind pager <up> previous-line | |
bind pager <down> next-line | |
bind pager <left> previous-entry | |
bind pager <right> next-entry | |
ignore * # ignore all headers except for ... | |
unignore Date: From: To: CC: Bcc: Subject: | |
hdr_order Subject: Date: From: To: CC: Bcc: | |
set index_format="%{%b %d} %-15.15L [%Z] %s" # custom index format | |
# 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 ge "<change-folder>=[Gmail]/Sent<enter>" "Go to sent mail" | |
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<enterp ~" "Go to drafts" | |
macro index,pager \cb "<pipe-message> urlview<Enter>" "call urlscan to extract URLs out of a message" | |
macro attach,compose \cb "<pipe-entry> urlview<Enter>" "call urlscan to extract URLs out of a message" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment