b197c422859038d23739e515adaf578f3944be30
[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>offlineimap &<enter><sync-mailbox>" "Force refresh"
19 macro attach B "<pipe-entry>firefox \"data:text/html;base64,$(base64 -w 0 <&0)\"<enter>"
20 send2-hook "~f mart@martlubbers.net" "set sendmail=\"msmtp -C /home/mrl/.config/msmtp/config -a net\""
21 send2-hook "~f m.lubbers@cs.ru.nl" "set sendmail=\"msmtp -C /home/mrl/.config/msmtp/config -a ru\""
22 send2-hook "~f m.lubbers@science.ru.nl" "set sendmail=\"msmtp -C /home/mrl/.config/msmtp/config -a ru\""
23 send2-hook "~f mart@cs.ru.nl" "set sendmail=\"msmtp -C /home/mrl/.config/msmtp/config -a ru\""
24
25 #folder-hook . push "<delete-pattern>~=<enter>$"
26
27 # Key bindings
28 bind index gg first-entry
29 bind index G last-entry
30 bind pager k previous-line
31 bind pager j next-line
32 bind pager gg top
33 bind pager G bottom
34 bind index,pager R group-reply
35 bind index,pager F flag-message
36
37 # Misc options
38 set timeout=2
39 set mail_check=0
40 set include=yes
41 set delete=yes
42 set confirmappend=no
43 set fast_reply=yes
44
45 # Display options
46 unset wait_key
47 unset markers
48 set sort_browser=alpha
49 set sort=threads
50 set sort_aux=date
51 set editor=vim
52 set duplicate_threads=yes
53 ignore headers *
54 unignore headers from to subject date cc
55 set mailcap_path=~/.mutt/mailcap
56 set mailcap_sanitize=yes
57
58 # w3m --dump
59 auto_view text/html
60 # pdftotext
61 auto_view application/pdf
62 # libreoffice --cat
63 auto_view application/vnd.openxmlformats-officedocument.wordprocessingml.document
64 auto_view application/msword
65 auto_view application/vnd.openxmlformats-officedocument.wordprocessingml.document
66 auto_view application/vnd.oasis.opendocument.text
67
68 # Pager options
69 set pager_index_lines=20
70 set pager_context=3
71 set pager_stop
72 set menu_scroll
73 set tilde
74 set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
75
76 # Address book
77 set query_command= "khard email --parsable '%s'"
78 bind editor <Tab> complete-query
79 bind editor ^T complete
80 macro index,pager A \
81 "<pipe-message>khard add-email<return>" \
82 "add the sender email address to khard"
83
84 # sidebar
85 source ~/.mutt/sidebar.muttrc
86
87 # notmuch
88 source ~/.mutt/notmuch.muttrc
89
90 # Crypto
91 source ~/.mutt/gpg.muttrc
92
93 # Colors
94 source ~/.mutt/colors.muttrc