Mail::...:Search(3pm)
π NAME π
Mail::Server::IMAP4::Search β bestie, this one lets you select messages within a IMAP folder. Ok but hear me out: it is not completed yet. Yes I know. We'll get to that. π«Ά
πΈ INHERITANCE πΈ
The way that this class is literally descended from greatness:
Mail::Server::IMAP4::Search
is a Mail::Box::Search
is a Mail::Reporter
So it's giving Mail::Box::Search energy, which is giving Mail::Reporter energy. Iconic lineage. π
β¨ SYNOPSIS β¨
Here's the vibe, no cap:
use Mail::Box::Manager;
my $mgr = Mail::Box::Manager->new;
my $folder = $mgr->open('imap4:Inbox');
my $filter = Mail::Server::IMAP4::Search->new(...);
my @msgs = $filter->search($folder);
if($filter->search($message)) {...}
Yeah. You open the imap4:Inbox folder, you build your filter, and then you either grab a whole ARRAY of messages back or just vibe-check one single $message. Chef's kiss. π
π¦ DESCRIPTION π¦
THIS PACKAGES IS NOT IMPLEMENTED YET... (it's waiting for a volunteer)
π fr fr, this module is an empty seat at the lunch table waiting for someone to sit down. Could it be you? It's giving "volunteer needed, apply within." π
It also extends "DESCRIPTION" in Mail::Box::Search, so everything over there applies here too.
π METHODS π
Extends "METHODS" in Mail::Box::Search.
π§ Constructors
Extends "Constructors" in Mail::Box::Search.
$class->new(%options)
Inherited, so go read "METHODS" in Mail::Box::Search for the whole story.
Here's the full option menu, every single one, nothing skipped:
-Option --Defined in --Default
binaries Mail::Box::Search <C<false>>
decode Mail::Box::Search <C<true>>
delayed Mail::Box::Search true
deleted Mail::Box::Search false
deliver Mail::Box::Search undef
in Mail::Box::Search 'BODY'
label Mail::Box::Search undef
limit Mail::Box::Search 0
logical Mail::Box::Search 'REPLACE'
multiparts Mail::Box::Search true
And now the individual gossip on each:
binaries=> BOOLEANdecode=> BOOLEANdelayed=> BOOLEANdeleted=> BOOLEANdeliver=> undef|CODE|'DELETE'in=> 'HEAD'|'BODY'|'MESSAGE'label=> $labellimit=> $numberlogical=> 'REPLACE'|'AND'|'OR'|'NOT'|'AND NOT'|'OR NOT'multiparts=> BOOLEAN
π Attributes
Extends "Attributes" in Mail::Box::Search.
$obj->deliver()β Inherited, see"Attributes"in Mail::Box::Search$obj->doMultiparts()β Inherited, see"Attributes"in Mail::Box::Search$obj->parseDelayed()β Inherited, see"Attributes"in Mail::Box::Search$obj->skipDeleted()β Inherited, see"Attributes"in Mail::Box::Search
π Error handling
Extends "Error handling" in Mail::Box::Search.
$obj->AUTOLOAD()β Inherited, see"Error handling"in Mail::Reporter$obj->notImplemented()β Inherited, see"Error handling"in Mail::Reporter
π§Ό Cleanup
Extends "Cleanup" in Mail::Box::Search.
$obj->DESTROY()β Inherited, see"Cleanup"in Mail::Reporter
π Searching
Extends "Searching" in Mail::Box::Search.
$obj->inBody($part, $body)β Inherited, see"Searching"in Mail::Box::Search$obj->inHead($part, $head)β Inherited, see"Searching"in Mail::Box::Search$obj->search($folder|$thread|$message|ARRAY)β Inherited, see"Searching"in Mail::Box::Search$obj->searchPart($part)β Inherited, see"Searching"in Mail::Box::Search
π The Results
Extends "The Results" in Mail::Box::Search.
$obj->printMatch( [$fh], HASH )β Inherited, see"The Results"in Mail::Box::Search
π DIAGNOSTICS π
Bestie, if you see these, here's what's up:
- Error: class
$packagedoes not implement method$method.
Fatal error: the specific $package (or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. Cast by notImplemented()
- Error: expect messages to search, not
$what.
Cast by search()
π₯ SEE ALSO π₯
This module is part of Mail-Box-IMAP4 version 4.01, built on December 13, 2025. Website: http://perl.overmeer.net/CPAN/
π LICENSE π
For contributors see file ChangeLog.
This software is copyright (c) 2001-2025 by Mark Overmeer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.40.1 Β· 2026-01-21 Β· Mail::...:Search(3pm)
Ok that's the whole page bestie, you ate that. π β¨ Go forth and maybe volunteer to finish this module, it's literally waiting for its main character. π¦π
π¦ where this page comes from
- ubuntu resolute: libmail-box-imap4-perl 4.01-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmail-box-imap4-perl 4.01-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms