logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Mail::Server::IMAP4::Search - select messages within a IMAP folder (not completed)

Description

       THIS PACKAGES IS NOT IMPLEMENTED YET...  (it's waiting for a volunteer)

       Extends "DESCRIPTION" in Mail::Box::Search.

Diagnostics

       Error: Package $package does not implement $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.

Inheritance

        Mail::Server::IMAP4::Search
          is a Mail::Box::Search
          is a Mail::Reporter

License

       Copyrights 2001-2025 by [Mark Overmeer]. For other contributors see ChangeLog.

       This  program  is  free  software;  you can redistribute it and/or modify it under the same terms as Perl
       itself.  See http://dev.perl.org/licenses/

perl v5.40.1                                       2025-04-19                   Mail::Server::IMAP4::Search(3pm)

Methods

       Extends "METHODS" in Mail::Box::Search.

   Constructors
       Extends "Constructors" in Mail::Box::Search.

       Mail::Server::IMAP4::Search->new(%options)
            -Option    --Defined in       --Default
             binaries    Mail::Box::Search  <false>
             decode      Mail::Box::Search  <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
             log         Mail::Reporter     'WARNINGS'
             logical     Mail::Box::Search  'REPLACE'
             multiparts  Mail::Box::Search  <true>
             trace       Mail::Reporter     'WARNINGS'

           binaries => BOOLEAN
           decode => BOOLEAN
           delayed => BOOLEAN
           deleted => BOOLEAN
           deliver => undef|CODE|'DELETE'
           in => 'HEAD'|'BODY'|'MESSAGE'
           label => STRING
           limit => NUMBER
           log => LEVEL
           logical => 'REPLACE'|'AND'|'OR'|'NOT'|'AND NOT'|'OR NOT'
           multiparts => BOOLEAN
           trace => LEVEL

   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

   TheResults
       Extends "The Results" in Mail::Box::Search.

       $obj->printMatch( [$fh], HASH )
           Inherited, see "The Results" in Mail::Box::Search

   Errorhandling
       Extends "Error handling" in Mail::Box::Search.

       $obj->AUTOLOAD()
           Inherited, see "Error handling" in Mail::Reporter

       $obj->addReport($object)
           Inherited, see "Error handling" in Mail::Reporter

       $obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )
       Mail::Server::IMAP4::Search->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )
           Inherited, see "Error handling" in Mail::Reporter

       $obj->errors()
           Inherited, see "Error handling" in Mail::Reporter

       $obj->log( [$level, [$strings]] )
       Mail::Server::IMAP4::Search->log( [$level, [$strings]] )
           Inherited, see "Error handling" in Mail::Reporter

       $obj->logPriority($level)
       Mail::Server::IMAP4::Search->logPriority($level)
           Inherited, see "Error handling" in Mail::Reporter

       $obj->logSettings()
           Inherited, see "Error handling" in Mail::Reporter

       $obj->notImplemented()
           Inherited, see "Error handling" in Mail::Reporter

       $obj->report( [$level] )
           Inherited, see "Error handling" in Mail::Reporter

       $obj->reportAll( [$level] )
           Inherited, see "Error handling" in Mail::Reporter

       $obj->trace( [$level] )
           Inherited, see "Error handling" in Mail::Reporter

       $obj->warnings()
           Inherited, see "Error handling" in Mail::Reporter

   Cleanup
       Extends "Cleanup" in Mail::Box::Search.

       $obj->DESTROY()
           Inherited, see "Cleanup" in Mail::Reporter

Name

       Mail::Server::IMAP4::Search - select messages within a IMAP folder (not completed)

See Also

       This module is part of Mail-Box-IMAP4 distribution version 3.009,  built  on  April  18,  2025.  Website:
       http://perl.overmeer.net/CPAN/

Synopsis

        use Mail::Box::Manager;
        my $mgr    = Mail::Box::Manager->new;
        my $folder = $mgr->open('imap4:Inbox');

        my $filter = Mail::Server::IMAP4::Search->new
           (  ...to be defined...
           );

        my @msgs   = $filter->search($folder);
        if($filter->search($message)) {...}

See Also