00dfdeb4ab6415109d984a420258cdefa46d8322
[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 bind index,pager F flag-message
28
29 # Misc options
30 set timeout=2
31 set mail_check=0
32 set include=yes
33 set delete=yes
34 set confirmappend=no
35 set fast_reply=yes
36
37 # Display options
38 unset wait_key
39 unset markers
40 set sort_browser=alpha
41 set sort=threads
42 set sort_aux=date
43 set editor=vim
44 set duplicate_threads=yes
45 ignore headers *
46 unignore headers from to subject date cc
47 set mailcap_path=~/.mutt/mailcap
48 set mailcap_sanitize=yes
49
50 # w3m --dump
51 auto_view text/html
52 # pdftotext
53 auto_view application/pdf
54 # libreoffice --cat
55 auto_view application/vnd.openxmlformats-officedocument.wordprocessingml.document
56 auto_view application/msword
57 auto_view application/vnd.openxmlformats-officedocument.wordprocessingml.document
58 auto_view application/vnd.oasis.opendocument.text
59
60 # Pager options
61 set pager_index_lines=20
62 set pager_context=3
63 set pager_stop
64 set menu_scroll
65 set tilde
66 set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
67
68 # Address book
69 set query_command= "khard email --search '%s'"
70 bind editor <Tab> complete-query
71 bind editor ^T complete
72 macro index,pager A \
73 "<pipe-message>khard add-email<return>" \
74 "add the sender email address to khard"
75
76 # sidebar
77 source ~/.mutt/sidebar.muttrc
78
79 # Crypto
80 source ~/.mutt/gpg.muttrc
81
82 # Colors
83 source ~/.mutt/colors.muttrc
84