X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=man%2Fman1%2Fnotmuch-count.1;h=562dde1563190ac4629c2003e532f1c99233fa8a;hb=eb61cc78398712dc4cc8a4a3ed861ac074aa007e;hp=25fe329250272bcfebff412b77d85f849894ca46;hpb=d43f6c00b351424e903c2f2b71c34bc5902b467e;p=notmuch diff --git a/man/man1/notmuch-count.1 b/man/man1/notmuch-count.1 index 25fe3292..562dde15 100644 --- a/man/man1/notmuch-count.1 +++ b/man/man1/notmuch-count.1 @@ -1,6 +1,6 @@ -.TH NOTMUCH-COUNT 1 2011-12-04 "Notmuch 0.10.2" +.TH NOTMUCH-COUNT 1 2013-12-30 "Notmuch 0.17" .SH NAME -notmuch-count \- Count messages matching the given search terms. +notmuch-count \- count messages matching the given search terms .SH SYNOPSIS .B notmuch count @@ -23,7 +23,7 @@ Supported options for include .RS 4 .TP 4 -.B \-\-output=(messages|threads) +.B \-\-output=(messages|threads|files) .RS 4 .TP 4 @@ -37,14 +37,50 @@ Output the number of matching messages. This is the default. Output the number of matching threads. .RE +.RS 4 +.TP 4 +.B files + +Output the number of files associated with matching messages. This may +be bigger than the number of matching messages due to duplicates +(i.e. multiple files having the same message-id). +.RE +.RE + +.RS 4 +.TP 4 +.BR \-\-exclude=(true|false) + +Specify whether to omit messages matching search.tag_exclude from the +count (the default) or not. +.RE + +.RS 4 +.TP 4 +.BR \-\-batch + +Read queries from a file (stdin by default), one per line, and output +the number of matching messages (or threads) to stdout, one per +line. On an empty input line the count of all messages (or threads) in +the database will be output. This option is not compatible with +specifying search terms on the command line. +.RE + +.RS 4 +.TP 4 +.BR "\-\-input=" + +Read input from given file, instead of from stdin. Implies +.BR --batch . .RE + .RE .RE .SH SEE ALSO \fBnotmuch\fR(1), \fBnotmuch-config\fR(1), \fBnotmuch-dump\fR(1), -\fBnotmuch-hooks\fR(5), \fBnotmuch-new\fR(1), \fBnotmuch-part\fR(1), -\fBnotmuch-reply\fR(1), \fBnotmuch-restore\fR(1), -\fBnotmuch-search\fR(1), \fBnotmuch-search-terms\fR(7), -\fBnotmuch-show\fR(1), \fBnotmuch-tag\fR(1) +\fBnotmuch-hooks\fR(5), \fBnotmuch-insert\fR(1), \fBnotmuch-new\fR(1), +\fBnotmuch-reply\fR(1), \fBnotmuch-restore\fR(1), \fBnotmuch-search\fR(1), +\fBnotmuch-search-terms\fR(7), \fBnotmuch-show\fR(1), +\fBnotmuch-tag\fR(1)