From e7f18b647e3ea10862bb7d5f423942d9d678b3ab Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 12 Aug 2020 07:30:46 +0200 Subject: mutt: refactoring --- mutt/.mutt/muttrc | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'mutt/.mutt/muttrc') diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc index 8470cb2..0de9b6d 100644 --- a/mutt/.mutt/muttrc +++ b/mutt/.mutt/muttrc @@ -22,8 +22,8 @@ bind index F "flag-message" # macros set wait_key = no -macro index,pager G "imapfilter -c ~/.imapfilter/personal.lua &>/dev/null && mbsync personal && notmuch new 2>/dev/null" -macro index,pager H "imapfilter -c ~/.imapfilter/work.lua &>/dev/null && mbsync work && notmuch new 2>/dev/null" +macro index,pager G "imapfilter -c ~/.imapfilter/primary.lua &>/dev/null && mbsync primary && notmuch new 2>/dev/null" +macro index,pager H "imapfilter -c ~/.imapfilter/secondary.lua &>/dev/null && mbsync secondary && notmuch new 2>/dev/null" macro index,pager J "mbsync -a && notmuch new 2>/dev/null" macro index m "T~N;WNT~O;WO\CT~T" "mark all messages read" macro index c "?" "open a different folder" @@ -39,17 +39,18 @@ ignore * unignore from date subject to cc hdr_order from to cc date subject -# mailboxes -mailboxes =personal/inbox =personal/drafts =personal/all -mailboxes =work/inbox =work/drafts =work/all +# primary mailboxes +mailboxes =primary/inbox =primary/drafts =primary/all +# secondary mailboxes +mailboxes # folder hooks -folder-hook personal/* source ~/.mutt/personal.rc -folder-hook work/* source ~/.mutt/work.rc +folder-hook primary/* source ~/.mutt/primary.rc +folder-hook secondary/* source ~/.mutt/secondary.rc folder-hook . 'set read_inc=1' -folder-hook personal/all 'set read_inc=1000' -folder-hook work/all 'set read_inc=1000' -folder-hook work/lists 'set read_inc=1000' +folder-hook primary/all 'set read_inc=1000' +folder-hook secondary/all 'set read_inc=1000' +folder-hook secondary/lists 'set read_inc=1000' # notmuch set my_notmuchfs_folder="~/.notmuchfs" @@ -94,6 +95,6 @@ unset help # ui source ~/.mutt/ui.rc -# default personal -source ~/.mutt/personal.rc +# default primary +source ~/.mutt/primary.rc -- cgit v1.2.3