NOTMUCH-NEW(1)
π notmuch-new(1) β the notmuch new glow-up guide π
okay bestie, welcome to the notmuch-new manual page, aka the thing you read when you wanna know how notmuch new works. she's a whole vibe, she's the main character of your mail setup, and she's literally about to fold all your new mail into the database. let's get into it π
β¨ NAME β¨
notmuch-new β incorporate new mail into the notmuch database π«Ά
β¨ SYNOPSIS β¨
notmuch new [options]
β¨ DESCRIPTION β¨
Find and import any new messages to the database. that's it, that's the whole job, and she eats every single time π₯
The new command scans all sub-directories of the database, performing full-text indexing on new messages that are found. Every new message gets auto-tagged with both the inbox and unread tags, no cap. she just does it for you π
π real talk: you should runnotmuch newonce after first runningnotmuch(the setup one,notmuch-setup) to create the initial database. The first run may take a long time if you have a significant amount of mail (several hundred thousand messages or more). like, go make a snack, hydrate, do your skincare routine π
Subsequently, you should run notmuch new whenever new mail is delivered and you wish to incorporate it into the database. These subsequent runs will be much quicker than the initial run. slay, incremental behaviour, we love her β¨
Invoking notmuch with no command argument will run new if notmuch setup (notmuch-setup) has previously been completed, but notmuch new has not previously been run. lowkey convenient ngl.
notmuch new updates tags according to maildir flag changes if the maildir.synchronize_flags configuration option is enabled. See notmuch-config for details. π
The new command supports hooks. See notmuch-hooks for more details on hooks. πͺ
Supported options for new include:
--no-hooksβ Prevents hooks from being run. no hooks today bestie, we're going dark π--quietβ Do not print progress or results. silence, iconic, mysterious π--verboseβ Print file names being processed. Ignored when combined with--quiet. (so if you pass both,--quietwins, periodt.)--decrypt=(true|nostash|auto|false)β Iftrue, when encountering an encrypted message, try to decrypt it while indexing, and stash any discovered session keys. Ifauto, try to use any session key already known to belong to this message, but do not attempt to use the user's secret keys. If decryption is successful, index the cleartext of the message.
β οΈ okay this is the serious part, pay attention. Be aware that the index is likely sufficient (and the session key is certainly sufficient) to reconstruct the cleartext of the message itself, so please ensure that the notmuch message index is adequately protected. DO NOT USE--decrypt=trueor--decrypt=nostashwithout considering the security of your index. like, fr fr, don't be reckless with this one π¨
See also index.decrypt in notmuch-config. π
--full-scanβ By defaultnotmuch-newuses directory modification times (mtimes) to optimize the scanning of directories for new mail. This option turns that optimization off. bye bye speed, hello thoroughness πΈ
β¨ CONFIGURATION β¨
Indexing is influenced by the configuration options index.decrypt, index.header.<prefix> and new.ignore. Tagging is controlled by new.tags and maildir.synchronize_flags. See notmuch-config for details. π§
β¨ EXIT STATUS β¨
This command supports the following special exit status code:
75 (EX_TEMPFAIL)β A temporary failure occurred; the user is invited to retry. it's giving "not now, try again later" energy π
β¨ SEE ALSO β¨
notmuch, notmuch-config, notmuch-count, notmuch-dump, notmuch-hooks, notmuch-insert, notmuch-reply, notmuch-restore, notmuch-search, notmuch-search-terms, notmuch-show, notmuch-tag π¦
β¨ Author β¨
Carl Worth and many others π
β¨ Copyright β¨
2009-2026, Carl Worth and many others
and that's the whole page bestie, you ate that π this was NOTMUCH-NEW(1) from the notmuch source, version 0.40, dated Jan 31, 2026 β mwah, go index your mail, you got this π
πβ¨
π¦ where this page comes from
- fedora 44: notmuch 0.40-1.fc44 Β· GPL-3.0-or-later
- fedora 44: notmuch 0.40-1.fc44 Β· GPL-3.0-or-later
- nixos 26.05: notmuch 0.40
- ubuntu resolute: notmuch 0.40-1ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms