-
Notifications
You must be signed in to change notification settings - Fork 1
/
dotmuttrc.snippets
19 lines (16 loc) · 1.02 KB
/
dotmuttrc.snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Set up mutt to use our local maildir:
set mbox_type=Maildir
set folder=$HOME/Mail
set spoolfile="+/acc1/acc1" # This is your 'primary inbox'
# I manually manage the mailbox command so that my mailboxes come up
# in the order I want.
mailboxes ="acc1/acc1" ="acc2/acc2" ="acc1/acc1.folder1" # ... Keep going with more.
# One very useful feature are folder hooks which change
# options depending on the folder you are viewing:
folder-hook acc1 'set pgp_autosign postponed="+acc1/acc1.drafts" record="+acc1/acc1.sent"
folder-hook acc1 'set from="Egon Olsen<[email protected]>" signature="~/.signature-acc1"
folder-hook acc1 'set sendmail="msmtp-enqueue.sh -a acc1";
macro index,pager a "s=acc1/acc1.archive<enter>"'
# mu search:
macro index "\Cs" "<enter-command>unset wait_key<enter><shell-escape>read -p'mu query: ' x; mu find --clearlinks --linksdir ~/Mail/mu-search --format links \$x<enter><change-folder-readonly>~/Mail/mu-search\n" "mu find"
macro index "<Esc>s" "<change-folder-readonly>~/Mail/mu-search\n" "display mu-find results"