summaryrefslogtreecommitdiffstats
path: root/.config/mutt/muttrc
diff options
context:
space:
mode:
authorYigit Sever2020-11-06 20:57:19 +0300
committerYigit Sever2020-11-06 20:57:19 +0300
commitf109a1895fc90042448182c4e6d79f5234bf7ec1 (patch)
tree7a8cd0bd45fc0c136d8fd639bee5d75a052a421c /.config/mutt/muttrc
parent1c6d1133537622fe7ed3d7dbe73a2977bd7d3d33 (diff)
downloaddotfiles-f109a1895fc90042448182c4e6d79f5234bf7ec1.tar.gz
dotfiles-f109a1895fc90042448182c4e6d79f5234bf7ec1.tar.bz2
dotfiles-f109a1895fc90042448182c4e6d79f5234bf7ec1.zip
tracking mutt config
Diffstat (limited to '.config/mutt/muttrc')
-rw-r--r--.config/mutt/muttrc108
1 files changed, 108 insertions, 0 deletions
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
new file mode 100644
index 0000000..350c5a6
--- /dev/null
+++ b/.config/mutt/muttrc
@@ -0,0 +1,108 @@
1# vim: filetype=neomuttrc
2source /usr/local/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated
3source /home/yigit/.config/mutt/accounts/1-ceng_argor.muttrc # mw-autogenerated
4macro index,pager i1 '<sync-mailbox><enter-command>source /home/yigit/.config/mutt/accounts/1-ceng_argor.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to yigit@ceng.metu.edu.tr" # mw-autogenerated
5macro index,pager i2 '<sync-mailbox><enter-command>source /home/yigit/.config/mutt/accounts/2-metu_argor.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to ysever@metu.edu.tr" # mw-autogenerated
6macro index,pager i3 '<sync-mailbox><enter-command>source /home/yigit/.config/mutt/accounts/3-ceng_stu.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to e2482057@ceng.metu.edu.tr" # mw-autogenerated
7macro index,pager i4 '<sync-mailbox><enter-command>source /home/yigit/.config/mutt/accounts/4-metu_stu.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to e248205@metu.edu.tr" # mw-autogenerated
8macro index,pager i5 '<sync-mailbox><enter-command>source /home/yigit/.config/mutt/accounts/5-xyz.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to yigit@yigitsever.xyz" # mw-autogenerated
9
10bind generic z noop
11bind generic Z noop
12set send_charset="utf-8"
13set assumed_charset="cp1252"
14
15set sort=threads
16set sort_aux=reverse-last-date-received
17set strict_threads
18
19# Setting `autoedit` along with `edit_headers` makes Mutt immediately open Vim when
20# composing a new message. Common wisdom is to "write the introduction last". Assuming
21# this advice can be at all extended to writing email, it surely doesn't make sense to
22# prompt for a subject line before allowing composition of a mail's body.
23set autoedit
24set edit_headers
25
26# Also don't ask whether we want to recall a postponed message when hitting `m`. We can
27# use `R` (`recall-message`) to do that.
28set recall=no
29
30# update us with search/limit progress every nth message
31set read_inc=100
32
33# When in the pager (reading a message), still show a few lines of the index (list of messages) for context.
34set pager_index_lines=10
35
36# delete (purge/move) without prompt
37# include the reply by default
38# reply to, reply_to
39set delete=yes
40set include=yes
41set reply_to=yes
42
43# don't ask me to press keys after external command
44set wait_key=no
45
46# scroll one line up down between screen boundaries
47set menu_scroll
48
49# hide the line wrap + chars
50unset markers
51
52# From <https://wiki.archlinux.org/index.php/mutt#Speed_up_folders_switch>.
53# Don't pause to show info messages (for example when opening
54# another folder).
55# See <https://dev.mutt.org/doc/manual.html#sleep-time>.
56set sleep_time=0
57
58# composition will never be aborted
59set abort_nosubject=no
60set abort_unmodified=no
61
62# # Cache message headers here. This takes very little space and makes opening large folders much faster.
63# # See header-caching
64# # Big conf file does this for us, ~y
65# set header_cache=~/.config/mutt/cache/headers/
66
67# # Make things faster at the cost of a negligible amount of disk space.
68# # See <file:///usr/share/doc/neomutt/manual.html#body-caching>.
69# # Big conf file does this for us
70# set message_cachedir=~/.config/mutt/cache/
71
72# TODO: maybe check out <https://github.com/pimutils/mates.rs>.
73set query_command="khard email --parsable '%s'"
74# The editor menu is "command-line mode", i.e., what you when hitting colon.
75# See <file:///usr/share/doc/neomutt/manual.html#editor-map>.
76
77# When a message contains both plain text and HTML, prefer viewing plain text.
78alternative_order text/plain text/html
79bind editor <Tab> complete-query
80
81# Customize the status line at the bottom.
82# The format string reduces the amount of information compared to the default and doesn't use hyphens for padding.
83# See <http://www.mutt.org/doc/manual/#status-format>.
84# set status_format="%f%?V?/%V? [%m%?M?, %M shown?%?n?, %n new?%?o?, %o old?%?d?, %d deleted?%?F?, %F flagged?%?t?, %t tagged?%?p?, %p postponed?] %> %P"
85# set index_format="hi"
86
87# See <file:///usr/share/doc/neomutt/manual.html#compose-format>).
88# Also get rid of the hyphens again.
89set compose_format=
90
91# Customize the status line shown when reading a message (the status line for the pager).
92# See <https://dev.mutt.org/doc/manual.html#pager-format>.
93set pager_format="%s%* %P"
94
95macro index,pager \cb "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
96macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"
97
98set crypt_autosign = no
99set crypt_opportunistic_encrypt = no
100set pgp_self_encrypt = yes
101set pgp_default_key = 198466C2F5664940F73A1715B87B63C533C38A88
102
103unset query_command
104
105macro index,pager A \
106 "<pipe-message>khard add-email<return>" \
107 "add the sender email address to khard"
108