laptop stuff
[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/.config/msmtp/config"
15 set send_charset="us-ascii:utf-8"
16 macro index,pager $ "<shell-escape>offlineimap &<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 index,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
49 # w3m --dump
50 auto_view text/html
51 # pdftotext
52 auto_view application/pdf
53 # libreoffice --cat
54 auto_view application/vnd.openxmlformats-officedocument.wordprocessingml.document
55 auto_view application/msword
56 auto_view application/vnd.openxmlformats-officedocument.wordprocessingml.document
57 auto_view application/vnd.oasis.opendocument.text
58
59 # Pager options
60 set pager_index_lines=20
61 set pager_context=3
62 set pager_stop
63 set menu_scroll
64 set tilde
65 set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
66
67 # Address book
68 set query_command= "khard email --search '%s'"
69 bind editor <Tab> complete-query
70 bind editor ^T complete
71 macro index,pager A \
72 "<pipe-message>khard add-email<return>" \
73 "add the sender email address to khard"
74
75 # Colors
76 source ~/.mutt/colors.muttrc
77
78 # notmuch
79 source ~/.mutt/notmuch.muttrc
80
81 # Crypto
82 set crypt_use_gpgme=yes
83 set crypt_autosign
84 set crypt_replysign
85 set crypt_replysignencrypted=yes
86 set crypt_verify_sig=yes
87 message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"