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 'notmuch new >/dev/null'" 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 'Inbox' 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 "+flagged" "Toggle flagged tag" # # macro index,pager ,ff "!flaggednotmuch new" "toggle flag" macro index,pager ,ff "!flagged" "toggle flag" macro index,pager ,fi "+inbox" "send to inbox" macro index,pager R " '+trashnotmuch new'" "send to trash" bind index,pager w modify-labels # macro index A "+archive -unread -inbox" # macro index I "-inbox -unread" # macro index S "" 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