· 7 years ago · Dec 16, 2018, 01:36 PM
1# A basic .muttrc for use with Gmail
2
3# Change the following six lines to match your Gmail account details
4set imap_user = "shreesh@kayak.com"
5set copy=yes
6set smtp_url = "smtps://shreesh@kayak.com@smtp.gmail.com:465/"
7set from = "shreesh@kayak.com"
8set realname = "shreesh ayachit"
9
10# Change the following line to a different editor you prefer.
11#set edit_headers
12set editor="mvim -O -f +/^$ ++1 -S ~/.mutt_vimrc"
13set signature="~/.signature"
14set reverse_name
15set from=shreesh@kayak.com
16
17
18# Basic config, you can leave this as is
19set folder = "imaps://imap.gmail.com:993"
20set spoolfile = "+INBOX"
21set imap_check_subscribed
22set hostname = gmail.com
23set mail_check = 120
24set timeout = 300
25set imap_keepalive = 300
26set postponed = "+[Gmail]/Drafts"
27set record = "+[Gmail]/Sent Mail"
28mailboxes = +INBOX
29set header_cache=~/.mutt/cache/headers
30set message_cachedir=~/.mutt/cache/bodies
31set certificate_file=~/.mutt/certificates
32set move = no
33set include
34set sort = 'threads'
35set sort_aux = 'reverse-last-date-received'
36set auto_tag = yes
37ignore "Authentication-Results:"
38ignore "DomainKey-Signature:"
39ignore "DKIM-Signature:"
40hdr_order Date From To Cc
41# this is cool, dual text/html mails have only the text part shown
42alternative_order text/plain text/html *
43set mailcap_path=~/.mailcap
44auto_view text/html
45#set autoedit # start editor without asking for to, subject,...
46set auto_tag # if something is tagged, run commands on tagged msgs.
47set fast_reply # do not ask for to, subject,... when replying
48bind editor <Tab> complete-query
49bind editor ^T complete
50bind editor <space> noop
51
52# Generic key bindings.
53bind generic <home> first-entry
54bind generic <end> last-entry
55bind generic <left> previous-entry
56bind generic <right> next-entry
57
58# Specific key bindings.
59bind index "{" previous-thread
60bind index "}" next-thread
61bind index <up> previous-entry
62bind index <down> next-entry
63#bind alias " " tag-entry
64bind pager <home> top
65bind pager "g" top
66bind pager <end> bottom
67bind pager "G" bottom
68bind pager "{" previous-thread
69bind pager "}" next-thread
70bind pager <up> previous-line
71bind pager <down> next-line
72bind pager <left> previous-entry
73bind pager <right> next-entry
74
75ignore * # ignore all headers except for ...
76unignore Date: From: To: CC: Bcc: Subject:
77hdr_order Subject: Date: From: To: CC: Bcc:
78set index_format="%{%b %d} %-15.15L [%Z] %s" # custom index format
79
80# Gmail-style keyboard shortcuts
81macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
82macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n <delete-message>" "Gmail delete message"
83macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
84macro index,pager ge "<change-folder>=[Gmail]/Sent<enter>" "Go to sent mail"
85macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
86macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
87macro index,pager gd "<change-folder>=[Gmail]/Drafts<enterp ~" "Go to drafts"
88macro index,pager \cb "<pipe-message> urlview<Enter>" "call urlscan to extract URLs out of a message"
89macro attach,compose \cb "<pipe-entry> urlview<Enter>" "call urlscan to extract URLs out of a message"