summaryrefslogtreecommitdiff
path: root/.config/mutt
diff options
context:
space:
mode:
Diffstat (limited to '.config/mutt')
-rw-r--r--.config/mutt/mailcap4
-rw-r--r--.config/mutt/muttrc171
2 files changed, 175 insertions, 0 deletions
diff --git a/.config/mutt/mailcap b/.config/mutt/mailcap
new file mode 100644
index 0000000..21cd88b
--- /dev/null
+++ b/.config/mutt/mailcap
@@ -0,0 +1,4 @@
1text/plain; $EDITOR ;
2text/html; w3m %s ;
3image/*; feh %s;
4application/pdf; zathura %s;
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
new file mode 100644
index 0000000..c429fed
--- /dev/null
+++ b/.config/mutt/muttrc
@@ -0,0 +1,171 @@
1### General Variables
2set editor = "vim -i NONE"
3set signature = "~/.config/mutt/signature"
4#set index_format = "%2C %Z - %D - %a - %s (%-4.4c)"
5folder-hook . 'set index_format = "%2C %Z - %D - %a - %s (%-4.4c)"'
6folder-hook Sent 'set index_format = "%2C %Z - %D - %F - %s (%-4.4c)"'
7set date_format = "%m/%d/%y %I:%M %p"
8set mailcap_path = "~/.config/mutt/mailcap"
9set query_command = "abook --config ~/.config/abook/abookrc --datafile ~/.local/share/abook/addressbook --mutt-query '%s'"
10set sort = "reverse-date"
11set sleep_time = 0
12set markers = no
13set mark_old = no
14set wait_key = no
15set fast_reply
16set include
17set reverse_name
18set delete = yes
19set confirmappend = no
20set ssl_force_tls = yes
21set ssl_starttls = no
22set ssl_use_sslv3 = no
23set ssl_use_tlsv1 = no
24set ssl_use_tlsv1_1 = no
25set ssl_use_tlsv1_2 = yes
26set ssl_use_tlsv1_3 = yes
27set ssl_verify_dates = yes
28set ssl_verify_host = yes
29
30### Sidebar
31set sidebar_visible
32set mail_check_stats
33set sidebar_format = "%B%* %?N?%N/?%?S?%S?"
34set sidebar_short_path = yes
35set sidebar_folder_indent = yes
36set sidebar_indent_string = " "
37bind index,pager V sidebar-toggle-visible
38
39### Keybindings
40bind index u noop
41bind index U noop
42bind index g noop
43bind index h noop
44bind index,pager v noop
45bind index,pager i noop
46bind index,pager d noop
47bind index,pager y noop
48bind index,pager m noop
49bind index,pager c noop
50
51bind generic / search
52bind generic n search-next
53bind generic N search-opposite
54bind generic H top-page
55bind generic M middle-page
56bind generic L bottom-page
57bind generic ? help
58bind generic <Enter> select-entry
59bind generic <Return> select-entry
60
61bind index gg first-entry
62bind index G last-entry
63bind index j next-entry
64bind index k previous-entry
65bind index \Cu previous-unread
66bind index \Cd next-unread
67bind index l display-message
68bind index L limit
69bind index Q query
70bind index a create-alias
71bind index <Space> tag-entry
72bind index n mail
73
74bind pager h exit
75bind pager j next-line
76bind pager k previous-line
77bind pager l view-attachments
78bind pager { previous-page
79bind pager } next-page
80bind pager f display-toggle-weed
81bind pager \Cu half-up
82bind pager \Cd half-down
83
84bind index,pager r reply
85bind index,pager R group-reply
86bind index,pager s sort-mailbox
87bind index,pager S sort-reverse
88
89bind editor <Tab> complete-query
90
91bind attach * noop
92bind attach h exit
93
94### Macros
95macro index,pager D ";<delete-message><sync-mailbox><check-stats>" "send to trash (delete)"
96macro index P ";<purge-message><sync-mailbox><check-stats>" "permanently delete message"
97macro index U ";<undelete-message><sync-mailbox><check-stats>" "undelete message"
98macro index,pager mi ";<save-message>=Inbox<enter><sync-mailbox><check-stats>" "move to inbox"
99macro index,pager ms ";<save-message>=Sent<enter><sync-mailbox><check-stats>" "move to sent"
100macro index,pager mj ";<save-message>=Spam<enter><sync-mailbox><check-stats>" "move to spam"
101
102macro index,pager yi ";<copy-message>=Inbox<enter><sync-mailbox><check-stats>" "copy to inbox"
103macro index,pager ys ";<copy-message>=Sent<enter><sync-mailbox><check-stats>" "copy to sent"
104macro index,pager yj ";<copy-message>=Spam<enter><sync-mailbox><check-stats>" "copy to spam"
105
106macro index,pager ci ";<change-folder>=Inbox<enter>" "cd to inbox"
107macro index,pager cs ";<change-folder>=Sent<enter>" "cd to sent"
108macro index,pager cd ";<change-folder>=Drafts<enter>" "cd to drafts"
109macro index,pager ct ";<change-folder>=Trash<enter>" "cd to trash"
110macro index,pager cj ";<change-folder>=Spam<enter>" "cd to spam"
111macro index,pager ca ";<change-folder>=Archive<enter>" "cd to archive"
112
113macro index,pager J "<sidebar-next><sidebar-open>" "next mailbox"
114macro index,pager K "<sidebar-prev><sidebar-open>" "previous mailbox"
115
116macro index,pager A "|abook --config ~/.config/abook/abookrc --datafile ~/.local/share/abook/addressbook --add-email\n" "add address to abook"
117
118### Headers
119ignore *
120unignore from date subject to cc
121unignore Authentication-Results
122unhdr_order *
123hdr_order Authentication-Results: From: To: Subject: Date:
124
125### Colors
126mono bold bold
127mono underline underline
128mono indicator reverse
129mono error bold
130### Index
131color index white default "~A"
132color index_number blue default
133color index_author blue default "~A"
134color index_subject blue default "~A"
135# New
136color index brightyellow default "~N"
137color index_author underline brightblue default "~N"
138color index_subject underline brightblue default "~N"
139# Tagged
140color index brightwhite blue "~T"
141color index_author brightwhite blue "~T"
142color index_subject brightwhite blue "~T"
143### Header
144color hdrdefault blue default
145color header brightred default "^From:"
146color header brightred default "^Subject:"
147# highlight authentication headers based on pass/fail/none
148color header green default "dkim=pass"
149color header green default "spf=pass"
150color header green default "dmarc=pass"
151color header yellow default "dkim=none"
152color header yellow default "spf=none"
153color header yellow default "dmarc=none"
154color header brightred default "dkim=fail"
155color header brightred default "spf=fail"
156color header brightred default "dmarc=fail"
157### Body
158color body default default ".*"
159### Sidebar
160
161### Other
162color normal default default
163color tilde default default
164color status default black
165color signature default default
166color attachment default default
167color message default default
168color quoted green default
169color search brightred default
170
171source ~/.config/mutt/accounts/testing