Fix an Empty Virtual Mailbox#
Prerequisites#
A Notmuch virtual mailbox configured in NeoMutt that shows no messages.
Test the Query on the Command Line#
Copy the query from your config and run it directly:
notmuch search 'tag:inbox and tag:unread'
If this also returns nothing, the problem is in the query or the database, not NeoMutt.
Update the Database#
Run
notmuch newto index any recently synced mail:
notmuch new
Re-test the query.
Expected result: if new messages were indexed, the query now returns results.
Verify Query Syntax#
Common mistakes:
Problem |
Fix |
|---|---|
Missing |
|
Typo in tag name |
Check with |
Wrong |
Test with a known sender address |
Unquoted special characters |
Wrap the query in single quotes on the command line |
Check nm_default_url#
Confirm
$nm_default_urlpoints to the correct database path:
set nm_default_url = "notmuch:///home/you/.local/share/mail"
The path must match notmuch config get database.path.
Expected result: NeoMutt and Notmuch use the same database.