.TH "NOTMUCH-COUNT" "1" "September 14, 2014" "0.18.1" "notmuch" .SH NAME notmuch-count \- count messages matching the given search terms . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .\" Man page generated from reStructeredText. . .SH SYNOPSIS .sp \fBnotmuch\fP \fBcount\fP [\fIoption\fP ...] <\fIsearch\-term\fP> ... .SH DESCRIPTION .sp Count messages matching the search terms. .sp The number of matching messages (or threads) is output to stdout. .sp With no search terms, a count of all messages (or threads) in the database will be displayed. .sp See \fBnotmuch\-search\-terms(7)\fP for details of the supported syntax for . .sp Supported options for \fBcount\fP include .INDENT 0.0 .INDENT 3.5 \fB\-\-output=(messages|threads|files)\fP .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .TP .B \fBmessages\fP Output the number of matching messages. This is the default. .TP .B \fBthreads\fP Output the number of matching threads. .TP .B \fBfiles\fP 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). .UNINDENT .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \fB\-\-exclude=(true|false)\fP Specify whether to omit messages matching search.tag_exclude from the count (the default) or not. .TP .B \fB\-\-batch\fP 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. .TP .B \fB\-\-input=\fP Read input from given file, instead of from stdin. Implies \fB\-\-batch\fP. .UNINDENT .UNINDENT .UNINDENT .SH SEE ALSO .sp \fBnotmuch(1)\fP, \fBnotmuch\-config(1)\fP, \fBnotmuch\-dump(1)\fP, \fBnotmuch\-hooks(5)\fP, \fBnotmuch\-insert(1)\fP, \fBnotmuch\-new(1)\fP, \fBnotmuch\-reply(1)\fP, \fBnotmuch\-restore(1)\fP, \fBnotmuch\-search(1)\fP, \fBnotmuch\-search\-terms(7)\fP, \fBnotmuch\-show(1)\fP, \fBnotmuch\-tag(1)\fP .SH AUTHOR Carl Worth and many others .SH COPYRIGHT 2014, Carl Worth and many others .\" Generated by docutils manpage writer. .\" .