blob: 4b96ff850ad150fa225f786b5e168dd2ee541932 (
plain)
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
|
set mbox_type=Maildir
set folder="~/.mail/"
set alias_file = ~/.mutt/alias
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/messages
set mailcap_path = ~/.mutt/mailcap
set signature = ~/.mutt/sig
set tmpdir = ~/.mutt/tmp
set realname = "Patrick Simianer"
set from = "p@simianer.de"
set use_from = yes
set sort = threads
set charset = "utf-8"
set send_charset = "utf-8"
set config_charset = "utf-8"
set locale = `echo "${LC_ALL:-${LC_TIME:-${LANG}}}"`
set read_inc = 1
set sleep_time = 0
auto_view text/html
# macros
set wait_key = no
macro index,pager G "<shell-escape>imapfilter -c ~/.imapfilter/private.lua &>/dev/null && mbsync private && notmuch new 2>/dev/null<enter>"
macro index,pager H "<shell-escape>imapfilter -c ~/.imapfilter/work.lua &>/dev/null && mbsync work && notmuch new 2>/dev/null<enter>"
macro index,pager J "<shell-escape>mbsync -a && notmuch new 2>/dev/null<enter>"
macro index <esc>m "T~N<enter>;WNT~O<enter>;WO\CT~T<enter>" "mark all messages read"
macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro index M "T.*\n;WN" "Mark all messages as read"
# abook
set query_command = "abook --mutt-query '%s'"
bind editor <tab> complete-query
# headers
ignore *
unignore from date subject to cc
hdr_order from to cc date subject
# mailboxes
mailboxes \
+private/inbox \
+private/drafts \
+private/all \
+work/inbox \
+work/drafts \
+work/all \
+work/lists
# folder hooks
folder-hook private/* source ~/.mutt/private.rc
folder-hook work/* source ~/.mutt/work.rc
folder-hook . 'set read_inc=1'
folder-hook private/all 'set read_inc=1000'
folder-hook work/all 'set read_inc=1000'
folder-hook work/lists 'set read_inc=1000'
# notmuch
macro index , "<enter-command>unset wait_key<enter><shell-escape>mutt-notmuch-py ~/.mail/tmp/results<enter><change-folder-readonly>+tmp/results<enter>" "search mail (using notmuch)"
# status bar
set status_chars = " *%A"
set status_format = "▅▅ %f ▅ %r%m messages %>▅ "
# sidebar
bind index,pager <down> sidebar-next
bind index,pager <up> sidebar-prev
bind index,pager <right> sidebar-open
set sidebar_divider_char = ' '
set sidebar_visible = yes
set sidebar_width = 20
set sidebar_format = '%B%> %!%?N? %N? '
set sidebar_short_path = no
set sidebar_folder_indent = yes
set sidebar_indent_string = ' '
set mail_check_stats = yes
set mail_check_stats_interval = 3
set sidebar_new_mail_only = no
set mail_check = 3
# pager
set pager_index_lines = 20
set pager_context = 3
set pager_stop
set menu_scroll
set tilde
unset markers
# colors
color normal color0 color231
color error brightcolor15 color196
color indicator color201 color255
color status color243 color231
color hdrdefault color245 color231
color header color231 color0 "^(Subject): "
color signature color243 color231
color body color21 color231 "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+"
color body color21 color231 "((https?|ftp)://|www)+[\-\.\;@,/%~_:?&=\#a-zA-Z0-9+]+"
color quoted color243 color231
color quoted1 color196 color231
color quoted2 color22 color231
color quoted3 color130 color231
color quoted4 color51 color231
color tilde color243 color231
color tree color238 color231
color attachment color196 color231
color index color201 color231 "~N"
color index color243 color231 "~P"
color index brightcolor221 color231 "~F"
color index brightcolor39 color231 "~T"
color index color196 color231 "~D"
color sidebar_new black white
color sidebar_flagged black white
unset help
# default private
source ~/.mutt/private.rc
|