· 10 years ago · Jul 27, 2016, 09: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 = "YOUR.EMAIL@gmail.com"
5set imap_pass = "PASSWORD"
6set smtp_url = "smtp://YOUR.EMAIL@smtp.gmail.com:587/"
7set smtp_pass = "PASSWORD"
8set from = "YOUR.EMAIL@gmail.com"
9set realname = "YOUR NAME"
10
11# Change the following line to a different editor you prefer.
12set editor = "nano"
13
14# Basic config, you can leave this as is
15set folder = "imaps://imap.gmail.com:993"
16set spoolfile = "+INBOX"
17set imap_check_subscribed
18set hostname = gmail.com
19set mail_check = 120
20set timeout = 300
21set imap_keepalive = 300
22set postponed = "+[GMail]/Drafts"
23set record = "+[GMail]/Sent Mail"
24set header_cache=~/.mutt/cache/headers
25set message_cachedir=~/.mutt/cache/bodies
26set certificate_file=~/.mutt/certificates
27set move = no
28set include
29set sort = 'threads'
30set sort_aux = 'reverse-last-date-received'
31set auto_tag = yes
32ignore "Authentication-Results:"
33ignore "DomainKey-Signature:"
34ignore "DKIM-Signature:"
35hdr_order Date From To Cc
36alternative_order text/plain text/html *
37auto_view text/html
38bind editor <Tab> complete-query
39bind editor ^T complete
40bind editor <space> noop
41
42# Gmail-style keyboard shortcuts
43macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
44macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n\
45<delete-message>" "Gmail delete message"
46macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
47macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
48macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
49macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
50
51#end-----------------------------------------