update calendars and i3
[dotfiles.git] / email / .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 source /etc/Muttrc.d/notmuch-mutt.rc
18
19 # Key bindings
20 bind index gg first-entry
21 bind index G last-entry
22 bind pager k previous-line
23 bind pager j next-line
24 bind pager gg top
25 bind pager G bottom
26 bind pager R group-reply
27
28 # Misc options
29 set timeout=2
30 set mail_check=0
31 set include=yes
32 set delete=yes
33 set confirmappend=no
34 set fast_reply=yes
35
36 # Display options
37 unset wait_key
38 unset markers
39 set sort_browser=alpha
40 set sort=threads
41 set sort_aux=date
42 set editor=vim
43 set duplicate_threads=yes
44 ignore headers *
45 unignore headers from to subject date cc
46 set mailcap_path=~/.mutt/mailcap
47 set mailcap_sanitize=yes
48 auto_view text/html
49
50 # Pager options
51 set pager_index_lines=20
52 set pager_context=3
53 set pager_stop
54 set menu_scroll
55 set tilde
56 set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
57
58 # Aliases
59 set query_command= "khard mutt --search '%s'"
60 bind editor <Tab> complete-query
61 bind editor ^T complete
62 macro index,pager A \
63 "<pipe-message>khard add-email<return>" \
64 "add the sender email address to khard"
65
66 # Colors
67 color normal white default
68 color attachment brightyellow default
69 color hdrdefault cyan default
70 color indicator default cyan
71 color markers brightred default
72 color quoted green default
73 color signature cyan default
74 color status brightgreen blue
75 color tilde blue default
76 color tree red default
77 color body brightred default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
78 color body brightblue default (https?|ftp)://[\-\.\,/%~_:?\#a-zA-Z0-9]+
79 color quoted1 brightyellow default
80 color quoted2 red default
81 color hdrdefault cyan default
82 color signature cyan default
83 color index green default ~p
84 color index brightyellow default ~N
85 color index blue default ~T
86 color index red default ~D
87 color index brightblue default ~F
88
89 # Crypto
90 source /etc/Muttrc.d/gpg.rc
91 set crypt_autosign
92 set crypt_replysign
93 set crypt_replysignencrypted=yes
94 set crypt_verify_sig=yes
95 message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"