· 10 years ago · Sep 13, 2015, 10:50 AM
1# basic .muttrc for use with Gmail
2
3# Change the following six lines to match your Gmail account details
4set imap_user = "username@gmail.com"
5set imap_pass = ""
6set smtp_url = "smtp://username@smtp.gmail.com:587/"
7set smtp_pass = ""
8set from = "username@gmail.com"
9set realname = "Firstname Lastname"
10#
11# # Change the following line to a different editor you prefer.
12set editor = 'vim + -c "set textwidth=72" -c "set wrap"'
13# Basic config
14set folder = "imaps://imap.gmail.com:993"
15set spoolfile = "+INBOX"
16set imap_check_subscribed=yes
17set hostname = gmail.com
18set mail_check = 120
19set timeout = 300
20set imap_keepalive = 300
21set postponed = "+[GMail]/Drafts"
22set header_cache=~/.mutt/cache/headers
23set message_cachedir=~/.mutt/cache/bodies
24set certificate_file=~/.mutt/certificates
25set move = no
26set include
27set sort = 'threads'
28set sort_aux = 'reverse-last-date-received'
29set auto_tag = yes
30set pager_index_lines = 10
31ignore "Authentication-Results:"
32ignore "DomainKey-Signature:"
33ignore "DKIM-Signature:"
34hdr_order Date From To Cc
35alternative_order text/plain text/html *
36auto_view text/html
37bind editor <Tab> complete-query
38bind editor ^T complete
39bind editor <space> noop
40# # Gmail-style keyboard shortcuts
41macro index,pager am "<enter-command>unset trash\n <delete-message>" "Gmail archive message" # different from Gmail, but wanted to keep "y" to show folders.
42macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n <delete-message>" "Gmail delete message"
43macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
44macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
45macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
46macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
47macro index,pager gl "<change-folder>?" "Go to 'Label'" # will take you to a list of all your Labels (similar to viewing folders).