1 .TH NOTMUCH-COUNT 1 2013-12-30 "Notmuch 0.17"
3 notmuch-count \- count messages matching the given search terms
7 .RI [ options "... ] <" search-term ">..."
11 Count messages matching the search terms.
13 The number of matching messages (or threads) is output to stdout.
15 With no search terms, a count of all messages (or threads) in the database will
18 See \fBnotmuch-search-terms\fR(7)
19 for details of the supported syntax for <search-terms>.
26 .B \-\-output=(messages|threads|files)
32 Output the number of matching messages. This is the default.
38 Output the number of matching threads.
44 Output the number of files associated with matching messages. This may
45 be bigger than the number of matching messages due to duplicates
46 (i.e. multiple files having the same message-id).
52 .BR \-\-exclude=(true|false)
54 Specify whether to omit messages matching search.tag_exclude from the
55 count (the default) or not.
62 Read queries from a file (stdin by default), one per line, and output
63 the number of matching messages (or threads) to stdout, one per
64 line. On an empty input line the count of all messages (or threads) in
65 the database will be output. This option is not compatible with
66 specifying search terms on the command line.
71 .BR "\-\-input=" <filename>
73 Read input from given file, instead of from stdin. Implies
82 \fBnotmuch\fR(1), \fBnotmuch-config\fR(1), \fBnotmuch-dump\fR(1),
83 \fBnotmuch-hooks\fR(5), \fBnotmuch-insert\fR(1), \fBnotmuch-new\fR(1),
84 \fBnotmuch-reply\fR(1), \fBnotmuch-restore\fR(1), \fBnotmuch-search\fR(1),
85 \fBnotmuch-search-terms\fR(7), \fBnotmuch-show\fR(1),