I never use Windows, so cannot help you with the installation. However, I know that the tests produce many errors and warnings which can be ignored: the Windows users of MailBox seem unable to help me with real fixes for the tests.
For your implementation, I advice one of these two approached: use Mail::Message->build() (look for the details of build in this module by selecting the "methods sorted alphabetically" in the right column).
The other approach may be much simpler: first reconstruct your data into a MIME compliant message, and then call Mail::Message->read($m).
More help available at the mailbox mailinglist.
By the way: best way to parse e-mail addresses from a header line is like this:
my $msg = Mail::Message->read($data);
my @addr = $msg->get('To')->addresses;
The addresses are Mail::Address objects, which are relatively smart. Parsing addresses in reality is a very complicated task.In reply to Re: Re: Parsing email files, what are the best modules ?
by Anonymous Monk
in thread Parsing email files, what are the best modules ?
by peterr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |