enable calendar, more paths
[dotfiles.git] / email / .mutt / muttrc
1 # Basic information
2 set from="mart@martlubbers.net"
3 alternates "mart@(cs\.ru\.nl|mart@martlubbers\.net)"
4 set use_from=yes
5 set reverse_name=yes
6 set envelope_from=yes
7 set mbox_type=Maildir
8 set folder=~/.mutt/mail
9 set spoolfile=+/INBOX/
10 set record=+/Sent/
11 set postponed=+/Drafts/
12 set mask="!^\\.[^.]"
13 source ~/.mutt/mailboxes
14
15 # Receiving, sending and searching
16 set sendmail="/home/mrl/.mutt/checkattach.sh msmtp -C /home/mrl/.config/msmtp/config"
17 set send_charset="us-ascii:utf-8"
18 macro index,pager $ "<shell-escape>/home/mrl/.mutt/force_sync.sh<enter><sync-mailbox>" "Force refresh"
19 macro attach B "<pipe-entry>firefox \"data:text/html;base64,$(base64 -w 0 <&0)\"<enter>"
20
21 # Set the correct msmtp account for the different addresses
22 send2-hook '~f mart@martlubbers.net'\
23 'set sendmail="msmtp -C /home/mrl/.config/msmtp/config -a net"'
24 send2-hook '((~f m.lubbers@cs.ru.nl)|(~f m.lubbers@science.ru.nl)|(~f mart@cs.ru.nl))'\
25 'set sendmail="msmtp -C /home/mrl/.config/msmtp/config -a ru"'
26
27 # Macro for switching to the ru address
28 macro compose <esc>2 "<esc>f^UMart Lubbers <mart@cs.ru.nl><enter>"
29 # Disable pgp when sending from a ru address
30 send2-hook '((~f m.lubbers@cs.ru.nl)|(~f m.lubbers@science.ru.nl)|(~f mart@cs.ru.nl)) (~g|~G)'\
31 'push <pgp-menu>c'
32
33 #folder-hook . push "<delete-pattern>~=<enter>$"
34
35 # Key bindings
36 bind index gg first-entry
37 bind index G last-entry
38 bind pager k previous-line
39 bind pager j next-line
40 bind pager gg top
41 bind pager G bottom
42 bind index,pager R group-reply
43 bind index,pager F flag-message
44
45 # Misc options
46 set timeout=2
47 set mail_check=0
48 set include=yes
49 set delete=yes
50 set confirmappend=no
51 set fast_reply=yes
52
53 # Display options
54 unset wait_key
55 unset markers
56 set sort_browser=alpha
57 set sort=threads
58 set sort_aux=date
59 set editor=vim
60 set duplicate_threads=yes
61 ignore headers *
62 unignore headers from to subject date cc
63 set mailcap_path=~/.mutt/mailcap
64 set mailcap_sanitize=yes
65
66 # w3m --dump
67 auto_view text/html
68 # pdftotext
69 auto_view application/pdf
70 # khal
71 auto_view application/ics
72 # libreoffice --cat
73 auto_view application/vnd.openxmlformats-officedocument.wordprocessingml.document
74 auto_view application/msword
75 auto_view application/vnd.openxmlformats-officedocument.wordprocessingml.document
76 auto_view application/vnd.oasis.opendocument.text
77
78 # Pager options
79 set pager_index_lines=20
80 set pager_context=3
81 set pager_stop
82 set menu_scroll
83 set tilde
84 set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
85
86 # Address book
87 set query_command= "khard email --parsable '%s'"
88 bind editor <Tab> complete-query
89 bind editor ^T complete
90 macro index,pager A \
91 "<pipe-message>khard add-email<return>" \
92 "add the sender email address to khard"
93
94 # sidebar
95 source ~/.mutt/sidebar.muttrc
96
97 # notmuch
98 source ~/.mutt/notmuch.muttrc
99
100 # Crypto
101 source ~/.mutt/gpg.muttrc
102
103 # Colors
104 source ~/.mutt/colors.muttrc