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
66
67
68
69
70
71
# vim: filetype=neomuttrc
# _ _
# | | | |
# _ __ ___ _ _| |_| |_ _ __ ___
# | '_ ` _ \| | | | __| __| '__/ __|
# | | | | | | |_| | |_| |_| | | (__
# |_| |_| |_|\__,_|\__|\__|_| \___|
#
# Pablo (C) 2026
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"
# institutional account
macro index,pager i2 '<sync-mailbox><enter-command>source /home/pablo/.config/mutt/accounts/2-math.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to my math institutional 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"
# public account
macro index,pager i4 '<sync-mailbox><enter-command>source /home/pablo/.config/mutt/accounts/4-public.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to my public email 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"
# spam
macro index,pager gS "<change-folder>=Spam<enter>" "go to spam"
macro index,pager MS ";<save-message>=Spam<enter>" "move mail to spam"
macro index,pager CS ";<copy-message>=Spam<enter>" "copy mail to spam"
# 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 =====================================
# hide my user-agent
my_hdr User-Agent: Mozilla/5.0 (Windows NT 10.0) Gecko/20100101 Firefox/149.0
set content_type="text/html"
set send_charset="utf-8"
set attribution_intro = "\n<p>On %d, %n wrote:</p>\n<pre>"
set attribution_trailer = "</pre>"
set indent_string = "> "
# =============================== security ====================================
# don't display my timezone when replying
set date_format="%a, %b %d, %Y"