mutt new keyid for work
[dotfiles.git] / email / .config / mutt / muttrc
1 # Basic information
2 set from="mart@martlubbers.net"
3 alternates "(mart@cs\.ru\.nl|mart@martlubbers\.net|Mart\.Lubbers@ru\.nl)"
4 set use_from=yes
5 set reverse_name=yes
6 set envelope_from=yes
7 set mbox_type=Maildir
8 set folder=~/.local/share/offlineimap/mail
9 set spoolfile=+/INBOX/
10 set record=+/Sent/
11 set postponed=+/Drafts/
12 set mask="!^\\.[^.]"
13 source ~/.local/share/offlineimap/mailboxes
14
15 # Receiving, sending and searching
16 set sendmail="checkattach.sh msmtp -a net"
17 set send_charset="us-ascii:utf-8"
18 macro index,pager $ "<shell-escape>sync_mail.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="checkattach.sh msmtp -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="checkattach.sh msmtp -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
30 # Key bindings
31 bind index gg first-entry
32 bind index G last-entry
33 bind pager k previous-line
34 bind pager j next-line
35 bind pager gg top
36 bind pager G bottom
37 bind index,pager R group-reply
38 bind index,pager F flag-message
39
40 # Misc options
41 set timeout=2
42 set mail_check=0
43 set include=yes
44 set delete=yes
45 set confirmappend=no
46 set fast_reply=yes
47
48 # Display options
49 unset wait_key
50 unset markers
51 set sort_browser=alpha
52 set sort=threads
53 set sort_aux=date
54 set editor=vim
55 set duplicate_threads=yes
56 ignore headers *
57 unignore headers from to subject date cc
58 set mailcap_path=~/.config/mutt/mailcap
59 set mailcap_sanitize=yes
60
61 # w3m --dump
62 auto_view text/html
63 # pdftotext
64 auto_view application/pdf
65 # khal
66 auto_view application/ics
67 auto_view text/calendar
68 # libreoffice --cat
69 auto_view application/vnd.openxmlformats-officedocument.wordprocessingml.document
70 auto_view application/vnd.oasis.opendocument.text
71 auto_view application/msword
72
73 # Pager options
74 set pager_index_lines=20
75 set pager_context=3
76 set pager_stop
77 set menu_scroll
78 set tilde
79 set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
80
81 # Address book
82 set query_command= "khard email --parsable '%s'"
83 bind editor <Tab> complete-query
84 bind editor ^T complete
85 macro index,pager A \
86 "<pipe-message>khard add-email<return>" \
87 "add the sender email address to khard"
88
89 # sidebar
90 #source ~/.config/mutt/sidebar.muttrc
91
92 # notmuch
93 source ~/.config/mutt/notmuch.muttrc
94
95 # Crypto
96 source ~/.config/mutt/gpg.muttrc
97
98 # Colors
99 source ~/.config/mutt/colors.muttrc