Matt Yackley wrote: > Robert Swan said: >> IMAP does not support the public folders only >> mailbox folders. snip > > I've been pulling messages out of Exchange public folders via IMAP > for awhile now. I've done it with Exchange 5.5, 2K and 2K3, sometimes > the path can give you headaches, but it should work.
FWIW, here's a snippet of my sa-feedback.pl: use Mail::IMAPClient; ... my $fpfolder = 'Public Folders/FP: tagged but not spam'; my $fnfolder = 'Public Folders/FN: spam but not tagged'; ... my $imap = Mail::IMAPClient->new( Server=> 'mail.example.com:143', User => '*****', Password => '*****', Debug => $debug); ... $imap->select($fnfolder); my @msgs = $imap->search("ALL"); It's important to make sure that the user you log in as has permission to view (and delete, if your script deletes) messages in the public folder Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg,"