dotfiles/office/.config/neomutt/neomuttrc

71 lines
2.9 KiB
Text

source colors
source settings
source keys/unbind
source keys/bind
source account
################## notmuch settings
# index notmuch on start and exit
startup-hook "`command -v notmuch && notmuch new 2>/dev/null`"
shutdown-hook "`command -v notmuch && notmuch new 2>/dev/null`"
# whenever changing directory fetch changes
folder-hook notmuch:// "push '<shell-escape>notmuch new >/dev/null<enter>'"
set nm_query_type = "threads"
set nm_exclude_tags = "spam"
set nm_record = yes
set nm_record_tags = "-inbox,archive"
virtual-mailboxes "Inbox" "notmuch://?query=folder:Inbox" \
"Unread" "notmuch://?query=tag:unread" \
"Archive" "notmuch://?query=folder:Archive" \
"Drafts" "notmuch://?query=folder:Drafts" \
"Sent" "notmuch://?query=folder:Sent" \
"Jobs" "notmuch://Jobs?query=folder:Jobs" \
"Receipts" "notmuch://?query=folder:Receipts" \
"Junk" "notmuch://?query=folder:Junk" \
"github" "notmuch://?query=tag:github" \
"bemoji" "notmuch://?query=tag:bemoji"\
"All" "notmuch://?query=*"\
"Trash" "notmuch://?query=folder:Trash" \
push '<change-vfolder>Inbox<enter>'
virtual-mailboxes "date/" "notmuch://?query=date:today.."\
" this week" "notmuch://?query=date:week.."\
" this month" "notmuch://?query=date:month.."
virtual-mailboxes "attach/" "notmuch://?query=attachment:\.%20not%20attachment:\.pdf"\
" with PDF" "notmuch://?query=attachment:\.pdf"\
" with JPG" "notmuch://?query=attachment:\.jpg%20or%20attachment:\.png"
# bind index,pager S modify-labels # allow +adding -removing !toggling any notmuch tags
# macro index,pager f "<modify-labels>+flagged" "Toggle flagged tag"
#
# macro index,pager ,ff "<modify-labels>!flagged<enter><sync-mailbox><shell-escape>notmuch new<enter>" "toggle flag"
macro index,pager ,ff "<modify-labels>!flagged<enter>" "toggle flag"
macro index,pager ,fi "<modify-labels>+inbox<enter><sync-mailbox>" "send to inbox"
macro index,pager R "<push> '<modify-labels>+trash<enter><shell-escape>notmuch new<enter>'" "send to trash"
bind index,pager w modify-labels
# macro index A "<modify-labels>+archive -unread -inbox<enter>"
# macro index I "<modify-labels>-inbox -unread<enter>"
# macro index S "<modify-labels>"
tag-transforms "unread" "U"
tag-formats "inbox" "GI" \
"flagged" "GF" \
"unread" "GU" \
"test" "Gt" \
color index_tags red black
set index_format="%zc %zs %zt | %-20.20L %?X?& ? %M %-30.100s %* %?GF?%GF ? %(!%a %d %h %H:%M)"
# conditional dates, showing "09:48" for today's msg, "Mon 27 Aug" for this year's msg,
# "22 Dec '24" for previous years
# set index_format="%-30.100s %* %<[y?%<[d?%[%H:%M]&%[%a %d %h]>&%[%d %h \'%y]>"
# - [ ] show 'Inbox' etc in index IF we are in query results