* John Manko (john.manko@xxxxxxxxxxxxxxxx) [031225 08:14]:
> I'm making my first attempt to use Mail::Box::Maildir, and it doesn't work.
> foreach my $id ($maildir->messageIds){
That's expected behavior (behaves like documented). The messageIds method
only returns the IDs of messages which are parsed. Parsing of a message
(in the Maildir case) is only done when the message is used.
You may understand why, when you think of opening a folder with
1000 messages. It would be too expensive to lookup all the messageIds
immediately.
As the documentation explains: if you want to search for messageIds
with parsing the message headers, then use $folder->find($id) or
$folder->scanForMessage(...); But usually people want to do:
foreach my $msg ($folder->messages)
--
MarkOv
------------------------------------------------------------------------
drs Mark A.C.J. Overmeer MARKOV Solutions
Mark@xxxxxxxxxxxx solutions@xxxxxxxxxxxx
http://Mark.Overmeer.net http://solutions.overmeer.net
|