diff options
-rw-r--r-- | .config/mutt/gpg.rc | 2 | ||||
-rw-r--r-- | .config/mutt/muttrc | 108 |
2 files changed, 109 insertions, 1 deletions
diff --git a/.config/mutt/gpg.rc b/.config/mutt/gpg.rc index 5a6b2c2..6fe9cf9 100644 --- a/.config/mutt/gpg.rc +++ b/.config/mutt/gpg.rc | |||
@@ -50,7 +50,7 @@ set crypt_replyencrypt | |||
50 | set crypt_replysignencrypted | 50 | set crypt_replysignencrypted |
51 | set crypt_autoencrypt | 51 | set crypt_autoencrypt |
52 | 52 | ||
53 | set pgp_default_key= 35BA9C75A4D8DB82A72D47E026EEE174352542B4 | 53 | set pgp_default_key= 198466C2F5664940F73A1715B87B63C533C38A88 |
54 | set pgp_check_gpg_decrypt_status_fd | 54 | set pgp_check_gpg_decrypt_status_fd |
55 | set pgp_use_gpg_agent | 55 | set pgp_use_gpg_agent |
56 | set pgp_self_encrypt | 56 | set pgp_self_encrypt |
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 | ||
2 | source /usr/local/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated | ||
3 | source /home/yigit/.config/mutt/accounts/1-ceng_argor.muttrc # mw-autogenerated | ||
4 | macro 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 | ||
5 | macro 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 | ||
6 | macro 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 | ||
7 | macro 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 | ||
8 | macro 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 | |||
10 | bind generic z noop | ||
11 | bind generic Z noop | ||
12 | set send_charset="utf-8" | ||
13 | set assumed_charset="cp1252" | ||
14 | |||
15 | set sort=threads | ||
16 | set sort_aux=reverse-last-date-received | ||
17 | set 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. | ||
23 | set autoedit | ||
24 | set 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. | ||
28 | set recall=no | ||
29 | |||
30 | # update us with search/limit progress every nth message | ||
31 | set 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. | ||
34 | set pager_index_lines=10 | ||
35 | |||
36 | # delete (purge/move) without prompt | ||
37 | # include the reply by default | ||
38 | # reply to, reply_to | ||
39 | set delete=yes | ||
40 | set include=yes | ||
41 | set reply_to=yes | ||
42 | |||
43 | # don't ask me to press keys after external command | ||
44 | set wait_key=no | ||
45 | |||
46 | # scroll one line up down between screen boundaries | ||
47 | set menu_scroll | ||
48 | |||
49 | # hide the line wrap + chars | ||
50 | unset 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>. | ||
56 | set sleep_time=0 | ||
57 | |||
58 | # composition will never be aborted | ||
59 | set abort_nosubject=no | ||
60 | set 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>. | ||
73 | set 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. | ||
78 | alternative_order text/plain text/html | ||
79 | bind 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. | ||
89 | set 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>. | ||
93 | set pager_format="%s%* %P" | ||
94 | |||
95 | macro index,pager \cb "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message" | ||
96 | macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message" | ||
97 | |||
98 | set crypt_autosign = no | ||
99 | set crypt_opportunistic_encrypt = no | ||
100 | set pgp_self_encrypt = yes | ||
101 | set pgp_default_key = 198466C2F5664940F73A1715B87B63C533C38A88 | ||
102 | |||
103 | unset query_command | ||
104 | |||
105 | macro index,pager A \ | ||
106 | "<pipe-message>khard add-email<return>" \ | ||
107 | "add the sender email address to khard" | ||
108 | |||