-
Notifications
You must be signed in to change notification settings - Fork 4
/
.muttrc
executable file
·131 lines (112 loc) · 5.37 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
set imap_user = ""
set folder = "imaps://imap.gmail.com:993"
set from = ""
set my_name = ""
set smtp_url = "smtp://###@[email protected]:587/"
set postponed = "+[Gmail]/Drafts"
set spoolfile = "+INBOX"
# switch to default account on startup
source ~/.mutt/account.example
# actual switching
macro index <f5> '<sync-mailbox><enter-command>source ~/.mutt/account.example<enter><change-folder>!<enter>'
macro index <f6> '<sync-mailbox><enter-command>source ~/.mutt/account.otherdomain<enter><change-folder>!<enter>'
# General
set header_cache = ~/.cache/mutt
set imap_keepalive = 300
set mail_check = 60 # mutt checks for new mails on every keystroke but not more often than once in 5 seconds
set mark_old = no
set move = no # Stop asking to "move read messages to mbox"!
set net_inc = 5 # Display download progress every 5K
set quit = ask-yes
set timeout = 10 # mutt 'presses' (like) a key for you (while you're idle) each x sec to trigger the thing below
unset imap_passive
unset resolve
# Looks
set markers = no # don't put '+' at the beginning of wrapped lines
set pager_index_lines = 10
set pager_index_lines = 5 # how large is the index window?
set sort_aux = 'last-date-received'
set sort = 'reverse-threads'
# set arrow_cursor = yes
# Editor
set editor = 'vim + -c "set textwidth=72" -c "set wrap" -c "set nocp"'
mailboxes = +INBOX= [Gmail]/Drafts=[Gmail]/'Sent Mail'=[Gmail]/Spam=[Gmail]/Trash
set beep_new # beep on new messages in the mailboxes
bind pager <up> previous-line
bind pager <down> next-line
bind pager [ previous-unread
bind pager ] next-unread
bind editor <space> noop
macro index S "<save-message>+gmail/spam<enter>" "mark message as spam"
macro index ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index gp "<change-folder>=[Gmail]/Spam<enter>" "Go to Spam Mail"
macro index gs "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to Sent Mail"
macro index gt "<change-folder>=[Gmail]/Trash<enter>" "Go to trash"
macro index,pager \043 "<save-message>=[Gmail]/Trash<enter><enter><refresh>" "Trash Message"
# Index Format
set index_format="%4C [%Z] %{%b/%d} %-15.15L (%?l?%4l&%4c?) %s"
# Header stuff
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
ignore *
unignore from: date subject to cc
unignore x-mailing-list: posted-to:
unignore x-mailer:
color attachment color221 default
color error color167 default
color indicator color253 color235
color markers color221 default
color message color221 default
color normal color245 default
color search color48 color240 # how to hightlight search patterns in the pager
color status color110 color236 # top bar
color tilde color245 default
mono indicator reverse
# Index
color index color110 default "~T" # message to myself
color index color161 default '~N~s goaccess'
color index color167 default "~=" # message to myself
color index color167 default '~s goaccess'
color index color220 default "~N" # message to myself
color index color222 default "~A" # message to myself
color index color235 default "~D(!~p|~p)" # deleted
color tree color213 default # arrow in threads
# Header
color header color110 default "^From"
color header color143 default "^(To|Reply-To|Cc|Bcc):"
color header color167 default "^Date"
color header color173 default "^(Subject)"
color header color245 default "^(X-Original-To):"
color header color96 default "^(User-Agent|X-Editor|X-Mailer):"
color header cyan default "^Organization:"
# Body
color quoted1 color167 default
color quoted2 color173 default
color quoted3 color143 default
color quoted4 color221 default
color quoted5 color109 default
color quoted color110 default
color body brightred default "(BAD signature)"
color body brightred default "mailto: *[^ ]+\(\\?subject=[^ ]+\)?"
color body color109 default "(finger|ftp|http|news|telnet)://[^ >]*"
color body color178 default "[ ]?[*][^*]*[*][ ]"
color body color178 default "[ ][*][^*]*[*][ ]?"
color body color178 default "[;:][)(|]"
color body color178 default "[*]?((N)?ACK|CU|LOL|SCNR|BRB|BTW|CWYL|FWIW|vbg|GD&R|HTH|HTHBE|IMHO|IMNSHO|IRL|RTFM|ROTFL|ROFL|YMMV)[*]?"
color body color178 default "[;:][-o][)/(|]"
color body color208 default "(heipei|hackvalue|Jojo|Gilger|Johannes)"
color body color39 default "<URL:[^ ]*>"
color body cyan default "www\\.[-.a-z0-9]+\\.[a-z][a-z][a-z]?([-_./~a-z0-9]+)?"
color body green default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]"
color body green default "(Good signature)"
color bold green default
color normal color250 default
color signature color238 default
color underline color208 default
color body color128 default '[-.+\w]+@[-.\w]+[^.]' # e-mail addresses
color hdrdefault color218 default
color underline brightgreen default