Re: parsing a mbox file in PERL
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Thu, 29 Nov 2007 01:16:17 +0000
Quoth Madhusudhanan Chandrasekaran <mc79@xxxxxxxxxxxxxxx>:
I am trying to parse a mbox file and extract the message's
body. I am using Mail::MboxParser for this purpose. In my
source code, I have
my $mb = Mail::MboxParser->new('some_mailbox',
decode => 'ALL',
parseropts => $parseropts);
with the $parseropts initialized. However, it gives me the
following error message:
Can't locate object method "new" via package "MIME::Parser" at
/usr/local/share/perl/5.8.8/Mail/MboxParser/Mail.pm line 513.
I've MIME::Parser installed and it does seem to have a new method.
Either you haven't, or perl's failing to find it. M::MbP::Mail requires
MIME::Parser in an eval block, so you won't get an error if it can't be
found: not the most helpful thing to do. Try adding a
use MIME::Parser;
line before your
use Mail::MboxParser;
line to get the error message earlier. Then work out why perl can't find
MIME::Parser :).
Ben
.
- References:
- parsing a mbox file in PERL
- From: Madhusudhanan Chandrasekaran
- parsing a mbox file in PERL
- Prev by Date: Re: Parsing two files and comparing the first fields..
- Next by Date: Re: parsing a mbox file in PERL
- Previous by thread: parsing a mbox file in PERL
- Next by thread: Re: parsing a mbox file in PERL
- Index(es):
Relevant Pages
|
|