f87bb6f2e288af0ab7c1f7dcc844a612df62dd1b
[dotfiles.git] / .mutt / muttrc
1 # Basic information
2 set from="mart@martlubbers.net"
3 set use_from="yes
4 set envelope_from=yes
5 set mbox_type=Maildir
6 set folder=~/.mutt/mail
7 set spoolfile=+/INBOX/
8 set record=+/Sent/
9 set postponed=+/Drafts/
10 set mask="!^\\.[^.]"
11 source ~/.mutt/mailboxes
12
13 # Receiving, sending and searching
14 set sendmail="msmtp -C /home/mart/.mutt/msmtprc"
15 macro index,pager $ "<shell-escape>offlineimap -c ~/.mutt/offlineimaprc &<enter><sync-mailbox>" "Force refresh"
16 macro attach B "<pipe-entry>firefox \"data:text/html;base64,$(base64 -w 0 <&0)\"<enter>"
17 macro index <F8> \
18 "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
19 <shell-escape>notmuch-mutt -r --prompt search<enter>\
20 <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
21 <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
22 "notmuch: search mail"
23
24 # Key bindings
25 bind index gg first-entry
26 bind index G last-entry
27 bind pager k previous-line
28 bind pager j next-line
29 bind pager gg top
30 bind pager G bottom
31 bind pager R group-reply
32
33 # Misc options
34 set timeout=2
35 set mail_check=0
36 set include=yes
37 set delete=yes
38 set confirmappend=yes
39 set fast_reply=yes
40
41 # Display options
42 unset wait_key
43 unset markers
44 set sort_browser=alpha
45 set sort=threads
46 set sort_aux=date
47 set editor=vim
48 set duplicate_threads=yes
49 ignore headers *
50 unignore headers from to subject date cc
51 set mailcap_path=~/.mutt/mailcap
52 set mailcap_sanitize=yes
53 auto_view text/html
54
55 # Pager options
56 set pager_index_lines=20
57 set pager_context=3
58 set pager_stop
59 set menu_scroll
60 set tilde
61 set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
62
63 # Aliases
64 set query_command = "abook --mutt-query '%s'"
65 macro index,pager a "<pipe-message>abook --add-email-quiet<return>" "Add this sender to Abook"
66 bind editor <Tab> complete-query
67
68 # Colors
69 color normal white default
70 color attachment brightyellow default
71 color hdrdefault cyan default
72 color indicator default cyan
73 color markers brightred default
74 color quoted green default
75 color signature cyan default
76 color status brightgreen blue
77 color tilde blue default
78 color tree red default
79 color body brightred default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
80 color body brightblue default (https?|ftp)://[\-\.\,/%~_:?\#a-zA-Z0-9]+
81 color quoted1 brightyellow default
82 color quoted2 red default
83 color hdrdefault cyan default
84 color signature cyan default
85 color index green default ~p
86 color index brightyellow default ~N
87 color index blue default ~T
88 color index red default ~D
89 color index brightblue default ~F
90
91 # Crypto
92 source /etc/Muttrc.gpg.dist
93 set crypt_autosign
94 set crypt_replysign
95 set crypt_replysignencrypted=yes
96 set crypt_verify_sig=yes
97 message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"