HtmlFormatText in Mail::Box 2.070

Saeed Abu Nimeh <[email protected]> Mon, 23 Apr 2007 19:51:16 -0500
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <[email protected]>
Hi list,
When I try to use the (format) function in
Mail::Message::Convert::HtmlFormatText, I get the following error:
Not a GLOB reference at
/usr/local/lib/perl5/site_perl/5.8.8/mach/HTML/Parser.pm line 101.

This is my code (running perl 5.8.8 on freebsd 6.2)

 use Mail::Box::Manager;
 use Mail::Message::Convert::HtmlFormatText;
 my $mgr    = Mail::Box::Manager->new;
 my $folder = $mgr->open("ph"); #ph is my mbox folder in current directory
 my $message = $folder->message(2);
 my $af = Mail::Message::Convert::HtmlFormatText->new;
 my $plain_body = $af->format($message->body);
 $plain_body->print;

However, when I use other functions like (selectedFields) the code runs
ok, why?
Thanks for help,
Saeed

_______________________________________________
Mailbox mailing list
[email protected]
http://lists.utsl.gen.nz/mailman/listinfo.cgi/mailbox