· 9 years ago · Jul 27, 2017, 10:58 AM
1# A basic .muttrc for use with Gmail
2
3# Change the following six lines to match your Gmail account details
4set imap_user = "account-name-saya@gmail.com"
5#set pop_user =
6set imap_pass = "password-account-gmail"
7set smtp_url = "smtp://account-name-saya@smtp.gmail.com:587/"
8set smtp_pass = "password-account-gmail"
9set from = "account-name-saya@gmail.com"
10set realname = "Paijo"
11
12# Change the following line to a different editor you prefer.
13set editor = "nano"
14
15# Basic config, you can leave this as is
16set folder = "imaps://imap.gmail.com:993"
17set spoolfile = "+INBOX"
18set imap_check_subscribed
19set hostname = gmail.com
20set mail_check = 120
21set timeout = 300
22set imap_keepalive = 300
23set postponed = "+[GMail]/Drafts"
24set record = "+[GMail]/Sent Mail"
25set header_cache=~/.mutt/cache/headers
26set message_cachedir=~/.mutt/cache/bodies
27set certificate_file=~/.mutt/certificates
28set move = no
29set include
30set sort = 'threads'
31set sort_aux = 'reverse-last-date-received'
32set auto_tag = yes
33ignore "Authentication-Results:"
34ignore "DomainKey-Signature:"
35ignore "DKIM-Signature:"
36hdr_order Date From To Cc
37alternative_order text/plain text/html *
38auto_view text/html
39bind editor <Tab> complete-query
40bind editor ^T complete
41bind editor <space> noop
42
43# Gmail-style keyboard shortcuts
44macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
45macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n <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"