1NOTMUCH-NEW(1) notmuch NOTMUCH-NEW(1)
2
3
4
6 notmuch-new - incorporate new mail into the notmuch database
7
9 notmuch new [options]
10
12 Find and import any new messages to the database.
13
14 The new command scans all sub-directories of the database, performing
15 full-text indexing on new messages that are found. Each new message
16 will automatically be tagged with both the inbox and unread tags.
17
18 You should run notmuch new once after first running notmuch setup to
19 create the initial database. The first run may take a long time if you
20 have a significant amount of mail (several hundred thousand messages or
21 more). Subsequently, you should run notmuch new whenever new mail is
22 delivered and you wish to incorporate it into the database. These sub‐
23 sequent runs will be much quicker than the initial run.
24
25 Invoking notmuch with no command argument will run new if notmuch setup
26 has previously been completed, but notmuch new has not previously been
27 run.
28
29 notmuch new updates tags according to maildir flag changes if the
30 maildir.synchronize_flags configuration option is enabled. See not‐
31 much-config(1) for details.
32
33 The new command supports hooks. See notmuch-hooks(5) for more details
34 on hooks.
35
36 Supported options for new include
37
38 --no-hooks
39 Prevents hooks from being run.
40
41 --quiet
42 Do not print progress or results.
43
44 --decrypt=(true|nostash|auto|false)
45 If true, when encountering an encrypted message, try to decrypt
46 it while indexing, and stash any discovered session keys. If
47 auto, try to use any session key already known to belong to this
48 message, but do not attempt to use the user's secret keys. If
49 decryption is successful, index the cleartext of the message.
50
51 Be aware that the index is likely sufficient (and the session
52 key is certainly sufficient) to reconstruct the cleartext of the
53 message itself, so please ensure that the notmuch message index
54 is adequately protected. DO NOT USE --decrypt=true or
55 --decrypt=nostash without considering the security of your
56 index.
57
58 See also index.decrypt in notmuch-config(1).
59
60 --full-scan
61 By default notmuch-new uses directory modification times
62 (mtimes) to optimize the scanning of directories for new mail.
63 This option turns that optimization off.
64
66 This command supports the following special exit status code
67
68 75 (EX_TEMPFAIL)
69 A temporary failure occurred; the user is invited to retry.
70
72 notmuch(1), notmuch-config(1), notmuch-count(1), notmuch-dump(1), not‐
73 much-hooks(5), notmuch-insert(1), notmuch-reply(1), notmuch-restore(1),
74 notmuch-search(1), notmuch-search-terms(7), notmuch-show(1), not‐
75 much-tag(1)
76
78 Carl Worth and many others
79
81 2009-2019, Carl Worth and many others
82
83
84
85
860.28.4 May 06, 2019 NOTMUCH-NEW(1)