See METHODS in Mail::Reporter
Create a filter.
Option | Defined in | Default |
---|---|---|
binaries | <false> | |
decode | <true> | |
delayed | <true> | |
deleted | <false> | |
deliver | undef | |
in |
| |
label | undef | |
limit |
| |
log | Mail::Reporter |
|
logical |
| |
multiparts | <true> | |
trace | Mail::Reporter |
|
Th search object does not implement inBody(), and can therefore not search a message body.
Th search object does not implement inHead(), and can therefore not search a message header.
The search results cannot be delivered in the specific way, because that is not a defined alternative.
The in
option defines only three names.
Tests whether body contains the requesting information. See the specific search module for its parameters.
Tests whether header contains the requesting information. See the specific search module for its parameters.
Check which messages from the $folder (Mail::Box) match the search parameters. The matched messages are returned as list. You can also specify a $thread (a Mail::Box::Thread::Node), one single $message (a Mail::Message), or an ARRAY of messages.
Sometimes we know how only one match is needed. In this case, this
searching will stop at the first match. For instance, when limit
is -1
or 1
, or when the search in done in scalar context.
my $grep = Mail::Box::Search::Grep->new ( match => 'My Name Is Nobody' , deliver => 'PRINT' ); $grep->search($folder); my $message = $folder->message(3); $grep->search($message); my $thread = $message->threadStart; $grep->search($thread);
Search this message $part for matches.
Print the information about the match (see new(deliver)) in
some understandable way. If no file handle
is specified, the output will go to the selected filehandle (see
perldoc -f select
).