8 **notmuch** **reindex** [*option* ...] <*search-term*> ...
13 Re-index all messages matching the search terms.
15 See **notmuch-search-terms(7)** for details of the supported syntax for
18 The **reindex** command searches for all messages matching the
19 supplied search terms, and re-creates the full-text index on these
20 messages using the supplied options.
22 Supported options for **reindex** include
24 ``--decrypt=(true|nostash|auto|false)``
26 If ``true``, when encountering an encrypted message, try to
27 decrypt it while reindexing, stashing any session keys
28 discovered. If ``auto``, and notmuch already knows about a
29 session key for the message, it will try decrypting using that
30 session key but will not try to access the user's secret keys.
31 If decryption is successful, index the cleartext itself.
33 ``nostash`` is the same as ``true`` except that it will not
34 stash newly-discovered session keys in the database.
36 If ``false``, notmuch reindex will also delete any stashed
37 session keys for all messages matching the search terms.
39 Be aware that the index is likely sufficient (and a stashed
40 session key is certainly sufficient) to reconstruct the
41 cleartext of the message itself, so please ensure that the
42 notmuch message index is adequately protected. DO NOT USE
43 ``--decrypt=true`` or ``--decrypt=nostash`` without
44 considering the security of your index.
46 See also ``index.decrypt`` in **notmuch-config(1)**.
52 **notmuch-config(1)**,
56 **notmuch-insert(1)**,
59 **notmuch-restore(1)**,
60 **notmuch-search(1)**,
61 **notmuch-search-terms(7)**,