01
02
03
04
05
06
07
08
09
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
# vim: filetype=neomuttrc
# _ _
# | | | |
# _ __ ___ _ _| |_| |_ _ __ ___
# | '_ ` _ \| | | | __| __| '__/ __|
# | | | | | | |_| | |_| |_| | | (__
# |_| |_| |_|\__,_|\__|\__|_| \___|
#
# Pablo (C) 2021
source /usr/share/mutt-wizard/mutt-wizard.muttrc
source /home/pablo/.config/mutt/accounts/1-personal.muttrc
# =============================== accounts ====================================
# personal account
macro index,pager i1 '<sync-mailbox><enter-command>source /home/pablo/.config/mutt/accounts/1-personal.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to my personal email account"
# public account
macro index,pager i2 '<sync-mailbox><enter-command>source /home/pablo/.config/mutt/accounts/2-public.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to my public email account"
# general university account
macro index,pager i3 '<sync-mailbox><enter-command>source /home/pablo/.config/mutt/accounts/3-university.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to my university account"
# institutional account
macro index,pager i4 '<sync-mailbox><enter-command>source /home/pablo/.config/mutt/accounts/4-math.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to my math institutional account"
# scambaiting account
macro index,pager i5 '<sync-mailbox><enter-command>source /home/pablo/.config/mutt/accounts/5-fake.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to my private account"
# =========================== reading/indexing ================================
set query_command="abook --config \"$XDG_CONFIG_HOME\"/abook/abookrc --datafile \"$XDG_DATA_HOME\"/abook/addressbook --mutt-query '%s'"
# add new contacts to abook
macro index,pager A "<pipe-message>abook --config \"$XDG_CONFIG_HOME\"/abook/abookrc --datafile \"$XDG_DATA_HOME\"/abook/addressbook --add-email<return>" "add the sender address to abook"
# change the mailbox we're in
macro index,pager I '<change-folder>?' "change folder we're in"
# add sender to the addressbook
macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --config \"$XDG_CONFIG_HOME\"/abook/abookrc --datafile \"$XDG_DATA_HOME\"/abook/addressbook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
# format the sidebar entries
set mail_check_stats=yes
set sidebar_format="%B%* (+%N)"
# style the sidebar divider
set sidebar_divider_char="│"
color sidebar_divider white default
set mailcap_path = "~/.config/mutt/mailcap:/usr/share/neomutt/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap"
# =============================== compose =====================================
set content_type="text/html"
set send_charset="utf-8"
# open nvim in HTML mode by default
set editor="nvim -c 'call HTMLInit()'"
# =============================== security ====================================
# don't display my timezone when replying
set date_format="%a, %b %d, %Y"