8 **notmuch** **new** [options]
13 Find and import any new messages to the database.
15 The **new** command scans all sub-directories of the database,
16 performing full-text indexing on new messages that are found. Each new
17 message will automatically be tagged with both the **inbox** and
20 You should run **notmuch new** once after first running **notmuch
21 setup** to create the initial database. The first run may take a long
22 time if you have a significant amount of mail (several hundred thousand
23 messages or more). Subsequently, you should run **notmuch new** whenever
24 new mail is delivered and you wish to incorporate it into the database.
25 These subsequent runs will be much quicker than the initial run.
27 Invoking ``notmuch`` with no command argument will run **new** if
28 **notmuch setup** has previously been completed, but **notmuch new** has
29 not previously been run.
31 **notmuch new** updates tags according to maildir flag changes if the
32 **maildir.synchronize\_flags** configuration option is enabled. See
33 **notmuch-config(1)** for details.
35 The **new** command supports hooks. See **notmuch-hooks(5)** for more
38 Supported options for **new** include
41 Prevents hooks from being run.
44 Do not print progress or results.
46 ``--decrypt=(true|auto|false)``
48 If ``true``, when encountering an encrypted message, try to
49 decrypt it while indexing, and store any discovered session
50 keys. If ``auto``, try to use any session key already known
51 to belong to this message, but do not attempt to use the
52 user's secret keys. If decryption is successful, index the
53 cleartext of the message.
55 Be aware that the index is likely sufficient (and the session
56 key is certainly sufficient) to reconstruct the cleartext of
57 the message itself, so please ensure that the notmuch message
58 index is adequately protected. DO NOT USE ``--decrypt=true``
59 without considering the security of your index.
61 See also ``index.decrypt`` in **notmuch-config(1)**.
66 This command supports the following special exit status code
69 A temporary failure occurred; the user is invited to retry.
75 **notmuch-config(1)**,
79 **notmuch-insert(1)**,
81 **notmuch-restore(1)**,
82 **notmuch-search(1)**,
83 **notmuch-search-terms(7)**,