main dots / config / .config / mutt / muttrc
xxwhirlpool  ·  2026-09-11
 1set spool_file = ~/.mail/inbox
 2set mbox_type = maildir
 3
 4# sources
 5source $XDG_CONFIG_HOME/mutt/colors.muttrc
 6source $XDG_CONFIG_HOME/mutt/settings.muttrc
 7
 8# folder hooks
 9folder-hook "melodicake_disroot" "source $XDG_CONFIG_HOME/mutt/melodicake_disroot.rc"
10folder-hook "witnesslachesis_disroot" "source $XDG_CONFIG_HOME/mutt/witnesslachesis_disroot.rc"
11
12# accounts
13# ctrl+a & ctrl+b
14source $XDG_CONFIG_HOME/mutt/melodicake_disroot.rc
15macro index \Ca "<sync-mailbox><refresh><enter-command>source $XDG_CONFIG_HOME/mutt/melodicake_disroot.rc<enter><change-folder>!<enter>"
16macro index \Cb "<sync-mailbox><refresh><enter-command>source $XDG_CONFIG_HOME/mutt/witnesslachesis_disroot.rc<enter><change-folder>!<enter>"
17
18# sync mail
19# o for melo
20# p for lachesis
21macro index o "<shell-escape>syncmail melo<Enter>" "sync & index all mail on melo"
22macro index p "<shell-escape>syncmail lachesis<Enter>" "sync & index all mail on lachesis"
23
24# urlscan
25# ctrl+u
26macro index,pager \cu "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
27macro attach,compose \cu "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"