Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Searching using Mail::IMAPClient on exchange

by rob_au (Abbot)
on Aug 03, 2005 at 11:07 UTC ( #480432=note: print w/ replies, xml ) Need Help??


in reply to Searching using Mail::IMAPClient on exchange

You need to select the mailbox (folder) against which you wish to perform the search first using the select method - If you do not know the hierarchy, separators and namespace of your IMAP mail store, the folders and namespace methods may be useful.

For example:

my @folders = $imap->folders; foreach my $folder (@folders) { $imap->select($folder) or die('Cannot select IMAP folder - ', $@); if ($imap->search(@search)) { push @results, $imap->Results; } }

 

perl -le "print unpack'N', pack'B32', '00000000000000000000001000000000'"


Comment on Re: Searching using Mail::IMAPClient on exchange
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://480432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2015-07-28 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls