-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmuttrc
114 lines (105 loc) · 3.86 KB
/
muttrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# ~/.muttrc, see muttrc(5)
### headers
ignore *
unignore from subject to cc date user-agent
hdr_order date from to cc subject
### colours
color hdrdefault red default
color quoted brightblue default
color signature red default
color indicator black magenta
color error brightred default
color status yellow blue
color tree magenta default
color tilde magenta default
color message brightcyan default
color markers brightcyan default
color attachment brightmagenta default
color search default green
color header brightred default ^(From|Subject):
color body magenta default "(ftp|gopher|http|https)://[^ ]+"
color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+
color underline brightgreen default
mono quoted bold
### attachments
alternative_order text/plain text/html
attachments +A */.*
attachments -A text/x-vcard application/pgp.*
attachments -A application/x-pkcs7-.*
attachments +I text/plain
attachments -A message/external-body
attachments -I message/external-body
auto_view text/html
mime_lookup application/octet-stream
### address book
macro index,pager a "<pipe-message>abook --config ${HOME}/.abookrc --datafile ${HOME}/.addresses --add-email-quiet<return>" "add this sender to abook"
set query_command= "abook --config ${HOME}/.abookrc --datafile ${HOME}/.addresses --mutt-query '%s'"
### composing messages
set attribution = "%{%A, %Y%m%d %R%z}, %n wrote:"
set editor = 'mg'
set fast_reply
set forward_format = '%s'
set include
set send_charset = "utf-8"
set smart_wrap
set text_flowed = yes
set wrap = 80
### mailbox navigation
set ascii_chars = yes
set collapse_unread = no
set date_format = "%Y%m%d"
set index_format = "%2C | %Z [%d] %-25.25F (%-4.4c) %s"
set sort = 'threads'
set sort_aux = 'last-date-sent'
set uncollapse_jump
### reading mail
set pager_context = 10
set pager_index_lines = 10
set pager_stop
### misc
bind editor <Tab> complete-query
bind generic,alias,attach,browser,editor,index,compose,pager,pgp,postpone ':' noop
set delete = 'yes'
set imap_keepalive = 300
set maildir_header_cache_verify = no
set mark_old = no
set markers = no
set read_inc = 5000
set sleep_time = 0
set sort_browser = 'date'
set timeout = 600
### custom
# example config: one might encrypt it with GPG, e.g. using a passphrase with `gpg2 --symmetric`
## whoami
#set from = '[email protected]'
#set realname = 'Ebony Dark'ness Dementia Raven Way'
## server connection
#set imap_user='[email protected]'
#set smtp_authenticators = 'login'
#set smtp_url = 'smtps://[email protected]@smtp.example.com:465/'
#set smtp_url = 'smtp://localhost:25'
## oauth2 tokens
# oauth2.py source: https://github.com/google/gmail-oauth2-tools
# oauth2.py guide: http://mutt.org/doc/manual/#oauth + https://luxing.im/mutt-integration-with-gmail-using-oauth/
#set imap_authenticators="oauthbearer"
#set imap_oauth_refresh_command="/usr/local/libexec/oauth2.py --quiet --user='[email protected]' --client_id='123456789[...].apps.googleusercontent.com' --client_secret='limpid_tears_of_blood' --refresh_token='drakko_malfoy' 2>/dev/null"
#set smtp_authenticators="oauthbearer"
#set smtp_oauth_refresh_command="/usr/local/libexec/oauth2.py --quiet --user='[email protected]' --client_id='123456789[...].apps.googleusercontent.com' --client_secret='limpid_tears_of_blood' --refresh_token='drakko_malfoy' 2>/dev/null"
## passwords
#set imap_pass='STOPFLAMMINGDASTORYPREPZOK'
#set smtp_pass='STOPFLAMMINGDASTORYPREPZOK'
## subscribe to LOCAL folders
#set folder = '/var/mail/ebony'
#set spoolfile = '/var/mail/ebony'
## subscribe to MAILDIR folders
#set mbox_type = Maildir
#set folder = '~/Maildir'
#set spoolfile = '~/Maildir'
## subscribe to REMOTE folders
#set folder = 'imaps://imap.example.com:993/'
#set spoolfile = '+INBOX'
#set postponed = '+Drafts'
## set record to '' for gmail and when otherwise automatically saved to Sent by server
#set record = '+Archive'
#set trash = '+Archive'
#source "gpg2 -dq ${MUTTRC} 2>/dev/null|"