CC: | shardisty [...] realestate.com.au |
Subject: | "date()" in newer versions of Mail::Box::Mbox::Message |
In versions 2.082 & 2.083 of Mail::Box::Mbox::Message, I get the
following error that I do not get with identical code in version 2.042:
Method date() is not defined for a Mail::Box::Mbox::Message.
at blah/Mail-Box-2.083/blib/lib//Mail/Reporter.pm line 230
Mail::Reporter::AUTOLOAD('Mail::Box::Mbox::...') called at
blah/Mail-Box-2.083/blib/lib//Mail/Message/Construct.pm line 66
Mail::Message::AUTOLOAD('Mail::Box::Mbox::...') called at
./mbox.pl line 16
Here's the code:
my $mbox = Mail::Box::Mbox->new(
'folder' => $someMbox,
);
foreach my $message ($mbox->messages('ALL')) {
print $message->date() . "\n";
}
Cheers :)