Under Development
stars

Create a Virtual Mailbox for Unread Mail

Create a Virtual Mailbox for Unread Mail#

Prerequisites#

  1. Notmuch integration working in NeoMutt (see Setting Up Notmuch).

Add the Virtual Mailbox#

  1. Add this line to your neomuttrc:

virtual-mailboxes "Unread" "notmuch://?query=tag:inbox and tag:unread"
  1. Restart NeoMutt or reload with :source.

Verify#

  1. Open the Unread mailbox from the sidebar or browser.

Expected result: only unread inbox messages are visible. Messages you have already read do not appear.

When you read a message and Notmuch removes the unread tag, the message disappears from this view the next time the mailbox is refreshed.

See Getting Started with Notmuch Virtual Mailboxes for the full tutorial.