· 8 years ago · Sep 21, 2017, 12:24 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 = "jessicatysu@gmail.com"
5set imap_pass = "***"
6set smtp_url = "smtp://jessicatysu@smtp.gmail.com:587/"
7set smtp_pass = "***"
8set from = "jessicatysu@gmail.com"
9set realname = "wabbit"
10
11# Change the following line to a different editor you prefer.
12set editor = "vi"
13
14# Basic config, you can leave this as is
15set folder = "imaps://imap.gmail.com:993"
16set spoolfile = "imaps://imap.gmail.com:993/INBOX"
17set imap_check_subscribed
18set hostname = gmail.com
19set mail_check = 120
20set timeout = 300
21set imap_keepalive = 300
22#set postponed = "imaps://imap.gmail.com/[GMail]/Drafts"
23#set record = "imaps://imap.gmail.com/[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 "<delete-message>" "Gmail archive message"
44#macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
45#macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
46#macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
47#macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
48
49# Other
50bind index "^" imap-fetch-mail