.B pick
compares the header field name case insensitive
and the tries to match the field body with the
-.IR patern.
+.IR pattern.
.PP
With
.BR --componend
-you can sepcify the exact header field name you are looking for.
+you can specify the exact header field name you are looking for.
It is used to pick a component which is not one of `To:',
`Cc:', `Date:', `From:', or `Subject:'.
An example is
Pattern matching is performed on a per\-header-field basis. Within the header
of the message, each field is treated as one long line, but in the
body, each line is separate. The
-.IR patern
+.IR pattern
will match any case.
.PP
Note that since the
parentheses in logical expressions.
.PP
If no search criteria are given, all the messages specified on the
-command line are selected (this defaults to `all').
+command line are selected (this defaults to `a').
.PP
Once the search has been performed, if the
.B \-list
.B Scan
line contains the message number
(name), the date, the `From:' field and the `Subject' field.
-The folowing example shows the default output of
+The following example shows the default output of
.B scan
.PP
.RS 5
.SH DEFAULTS
.nf
.RB ` +folder "' defaults to the current folder"
-.RB ` msgs "' defaults to all"
+.RB ` msgs "' defaults to all messages"
.RB ` "\-datefield date" '
.RB ` \-zero '
.RB ` \-list "' is the default if no `\-sequence', `\-nolist' otherwise"
-.RB ` "\-format pick\.default" "' if the programm is called with scan `scan.default' is used
+.RB ` "\-format pick\.default" "' if the program is called with scan `scan.default' is used
.fi
.SH CONTEXT
.B nmh
and old
.B mmh
-versions scan and pick where two diffrent tools. So instand of typing
+versions scan and pick where two different tools. So instand of typing
.PP
.RS 5
.nf
outputs the illegal message number `0'
when it fails. This lets the outer command fail gracefully as well.
.PP
+To account for this case when combining
+.B pick
+with regular shell tools, filter out the message number `0'.
+For example, do
+.PP
+.RS 5
+pick\0...\0|\0fgrep\0-vx\0\&0\0|\0wc\0-l
+.RE
+.PP
+to count the number of messages picked.
+.PP
The pattern syntax `[l-r]' is not supported; each letter to be
matched must be included within the square brackets.