1NOTMUCH-NEW(1)                      notmuch                     NOTMUCH-NEW(1)
2
3
4

NAME

6       notmuch-new - incorporate new mail into the notmuch database
7

SYNOPSIS

9       notmuch new [options]
10

DESCRIPTION

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(1) 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  not‐
26       much-setup(1)  has  previously  been completed, but notmuch new has not
27       previously been 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       --verbose
45              Print  file  names  being  processed. Ignored when combined with
46              --quiet.
47
48       --decrypt=(true|nostash|auto|false)
49              If true, when encountering an encrypted message, try to  decrypt
50              it  while  indexing,  and stash any discovered session keys.  If
51              auto, try to use any session key already known to belong to this
52              message,  but  do not attempt to use the user's secret keys.  If
53              decryption is successful, index the cleartext of the message.
54
55              Be aware that the index is likely sufficient  (and  the  session
56              key is certainly sufficient) to reconstruct the cleartext of the
57              message itself, so please ensure that the notmuch message  index
58              is  adequately  protected.   DO  NOT USE --decrypt=true or --de‐
59              crypt=nostash without considering the security of your index.
60
61              See also index.decrypt in notmuch-config(1).
62
63       --full-scan
64              By  default  notmuch-new  uses  directory   modification   times
65              (mtimes)  to  optimize the scanning of directories for new mail.
66              This option turns that optimization off.
67

CONFIGURATION

69       Indexing is influenced by the configuration options index.decrypt,  in‐
70       dex.header,  and  new.ignore.   Tagging  is  controlled by new.tags and
71       maildir.synchronize_flags.  See notmuch-config(1) for details.
72

EXIT STATUS

74       This command supports the following special exit status code
75
76       75 (EX_TEMPFAIL)
77              A temporary failure occurred; the user is invited to retry.
78

SEE ALSO

80       notmuch(1), notmuch-config(1), notmuch-count(1), notmuch-dump(1),  not‐
81       much-hooks(5), notmuch-insert(1), notmuch-reply(1), notmuch-restore(1),
82       notmuch-search(1),   notmuch-search-terms(7),   notmuch-show(1),   not‐
83       much-tag(1)
84

AUTHOR

86       Carl Worth and many others
87
89       2009-2022, Carl Worth and many others
90
91
92
93
940.36                             Jun 25, 2022                   NOTMUCH-NEW(1)
Impressum