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