Re: Email::Folder->messages returns only one element



On 05/31/2007 02:22 AM, Michael Yang wrote:
[ program demonstrating Email::Folder snipped ]

I ran your program. The only things I changed were lines 9 and 14:

9: my @mail_list = glob('~/tmp/mozmail/*.msf');
14: die "The module Email::Folder is required for this script.\n" if $@;

I had to change $! to $@. Read "perldoc -f eval."

Your modified program ran properly; all of the message subjects were listed separately on my system:

Debian 3.1 (Linux).
Perl 5.8.4
Email::Folder 0.852
Email::Simple 1.9
Email::FolderType 0.7


.