The source of readMessageFilenames in Mail::Box::Dir is "sub readMessageFilenames() {shift->notImplemented}"
I just downloaded version 2.118 of Mail::Box and yes, "readMessageFilenames" is unimplemented.so $folder is likely one of its subclasses, Mail::Box::MH or Mail::Box::Maildir
Yes, in the same vers 2.118 I can see that Mail::Box::MH and Mail::Box::Maildir seem okay (implemented)
can you tell us which one? (try print ref $folder;)
The print displays Mail::Box::MaildirMore information would be useful. What is $filename - a single file, or a directory? What does "The number of files is not correct" mean? Most importantly, what files are in the folder you are looking at; i.e. what is your expected output? Also, Basic debugging checklist
$filename is a directory. The number of files should be 592. The script posted only parses through 591 files, and also displays 591 files. Other small perl scripts I have run state 592 files. I need to determine which file is being missed, and then determine the reason why.
I'm using the Perl debugger quite a lot with this. Thanks. :)
In reply to Re^2: Display filenames in mbox folder
by peterr
in thread Display filenames in mbox folder
by peterr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |