Use Tags as a Workflow#
Prerequisites#
Notmuch virtual mailboxes configured in NeoMutt (see Getting Started with Notmuch Virtual Mailboxes).
A key bound for tagging (see below).
Set Up Workflow Mailboxes#
Add virtual mailboxes that map to workflow stages:
virtual-mailboxes "Inbox" "notmuch://?query=tag:inbox"
virtual-mailboxes "Action" "notmuch://?query=tag:todo"
virtual-mailboxes "Done" "notmuch://?query=tag:done"
Bind a key for modifying tags if you havenβt already:
bind index,pager \eT modify-tags
Triage Messages#
Open the Inbox mailbox.
Select a message and press Alt-T.
Add a workflow tag and remove the inbox tag:
+todo -inbox
Expected result: the message disappears from Inbox and appears in Action.
Mark Messages as Done#
Open the Action mailbox.
Select a completed item and press Alt-T:
+done -todo
Expected result: the message moves from Action to Done.
The Workflow in Practice#
Stage |
Tag change |
Message appears in |
|---|---|---|
Triage |
|
Action |
Complete |
|
Done |
Defer |
leave in inbox |
Inbox |
Messages move between virtual mailboxes automatically as their tags change β no manual filing required.
Speed Up Tagging with Macros#
Create macros for common tag operations:
macro index ,t "<modify-tags>+todo -inbox<Enter>" "Move to Action"
macro index ,d "<modify-tags>+done -todo<Enter>" "Mark as Done"
macro index ,i "<modify-tags>+inbox -todo -done<Enter>" "Return to Inbox"
Expected result: pressing ,t, ,d, or ,i applies the tag change in one step.
See Organising Email with Tags for the full tagging tutorial and Organise Multiple Virtual Mailboxes for keeping the mailbox list tidy.