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 => BOOLEAN
  • decode => BOOLEAN
  • delayed => BOOLEAN
  • deleted => BOOLEAN
  • deliver => undef|CODE|'DELETE'
  • in => 'HEAD'|'BODY'|'MESSAGE'
  • label => $label
  • limit => $number
  • logical => '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 $package does 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