notmuch.muttrc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ##### My (demuredemeanor) muttrc sub notmuch config
  2. # Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
  3. # https://notabug.org/demure/dotfiles
  4. # legacy repo http://github.com/demure/dotfiles
  5. # vim:set syntax=muttrc:
  6. ## notmuch
  7. set nm_default_uri="notmuch:///home/demure/.mail" ## path to the maildir
  8. set virtual_spoolfile=yes ## enable virtual folders
  9. #set sendmail="/PATH/TO/bin/nm_sendmail" ## enables parsing of outgoing mail
  10. ## sets up queries for virtual folders
  11. virtual-mailboxes \
  12. "INBOX" "notmuch://?query=tag:INBOX and NOT tag:archive" \
  13. "Unread" "notmuch://?query=tag:unread" \
  14. "Starred" "notmuch://?query=tag:*" \
  15. "Sent" "notmuch://?query=tag:sent" \
  16. "Attachment" "notmuch://?query=tag:attachment" \
  17. "Signed" "notmuch://?query=tag:signed" \
  18. "Encrypted" "notmuch://?query=tag:encrypted"
  19. exec sidebar-toggle-virtual ## Show non virtual mail on load
  20. ## notmuch bindings
  21. macro index X "<sidebar-toggle-virtual>" ## Replace <change-vfolder> with useful toggle
  22. ## The following have not been checked by me yet...
  23. ## Disabled as I'm not really using notmuch
  24. macro index \\\\ "<vfolder-from-query>" ## looks up a hand made query
  25. #macro index A "<modify-labels>+archive -unread -inbox\\n" ## tag as Archived
  26. #macro index I "<modify-labels>-inbox -unread\\n" ## removed from inbox
  27. #macro index S "<modify-labels-then-hide>-inbox -unread +junk\\n" ## tag as Junk mail
  28. #macro index + "<modify-labels>+*\\n<sync-mailbox>" ## tag as starred
  29. #macro index - "<modify-labels>-*\\n<sync-mailbox>" ## tag as unstarred
  30. macro index \CX "<modify-labels>+deleted\n" ## tag as deleted