merge
[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/mrl/.mutt/msmtprc"
15 set send_charset="us-ascii:utf-8"
16 macro index,pager $ "<shell-escape>offlineimap -c ~/.mutt/offlineimaprc &<enter><sync-mailbox>" "Force refresh"
17 macro attach B "<pipe-entry>firefox \"data:text/html;base64,$(base64 -w 0 <&0)\"<enter>"
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 # Address book
59 set query_command= "khard email --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 source ~/.mutt/colors.muttrc
68
69 # notmuch
70 source ~/.mutt/notmuch.muttrc
71
72 # Crypto
73 set crypt_use_gpgme=yes
74 set crypt_autosign
75 set crypt_replysign
76 set crypt_replysignencrypted=yes
77 set crypt_verify_sig=yes
78 message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"