-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.muttrc
More file actions
85 lines (67 loc) · 2.44 KB
/
.muttrc
File metadata and controls
85 lines (67 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
set folder=~/mail
set header_cache=~/.cache/mutt
set message_cachedir=~/.cache/mutt
set sendmail="/usr/bin/msmtp"
set envelope_from=yes
set edit_hdrs
set include=yes
# https://github.com/webgefrickel/dotfiles/blob/09276154dd9a5248f36a428a3dd6a43785165f87/office/mutt/muttrc
# http://www.mutt.org/doc/manual/#index-format
# http://www.mutt.org/doc/manual/#formatstrings-conditionals
set date_format = "%d.%m.%Y"
set index_format = "[%Z] %?X?A&-? %D %-20.20F %s"
# https://superuser.com/a/407797
set menu_scroll
set pager_index_lines=20
set strict_threads
# https://www.neomutt.org/feature/sidebar#muttrc
set sidebar_visible=yes
set sidebar_short_path=yes
set sidebar_delim_chars='/.'
set sidebar_divider_char='┃'
set sidebar_folder_indent=yes
set sidebar_indent_string=' '
set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_next_new_wrap=yes
set sidebar_new_mail_only
set mail_check_stats
# some MUAs encode filenames of attachments according to RFC 2047
# by default, mutt does not decode those filenames
# http://www.mutt.org/doc/manual/#rfc2047-parameters
set rfc2047_parameters
bind index,pager B sidebar-toggle-visible
# by default, J and K are bound to next-entry and previous-entry
bind index,pager J sidebar-next
bind index,pager K sidebar-prev
# by default, O is bound to sort-reverse
bind index,pager O sidebar-open
bind index,pager p search-opposite
bind index G last-entry
macro index,pager c \
":source $HOME/bin/mutt-change-folder|<return>" \
"change folder"
# http://www.mutt.org/doc/manual/#auto-tag
set auto_tag=yes
# https://unix.stackexchange.com/questions/105733/mutt-macro-for-saving-messages-to-a-folder
macro index,pager S \
":source $HOME/bin/mutt-save-to-folder|<return>" \
"save message"
# https://github.com/scheibler/khard/issues/16#issuecomment-112171204
macro index,pager A \
"<pipe-message>khard add-email<return>" \
"add the sender email address to khard"
auto_view text/html
alternative_order text/plain text/html
set my_tmp_html_path="/tmp/mutt-mail.html"
macro attach V \
"<pipe-entry>cat > $my_tmp_html_path && xdg-open $my_tmp_html_path<return>" \
"view attachment as HTML in browser using xdg-open"
# this does not seem work if a calendar has to be selected
macro attach E \
"<pipe-entry>khal import<return>" \
"import attachment in khal"
set query_command="khard email --parsable %s"
bind editor <Tab> complete-query
bind editor ^T complete
source ~/.mutt/accounts
source ~/.mutt/colors-solarized-dark-256.muttrc