Small fix for Mail-MboxParser-0.55
- From: Ed Huott <ed-newsXspam_be_goneX@xxxxxxxxx>
- Date: Wed, 21 Jun 2006 12:35:24 -0400
Hello,
Attached is a slightly modified version of Mail.pm (v 1.53) which is
contained in the package Mail-MboxParser-0.55. It fixes a problem which
caused the header() function of the Mail::MBoxParser::Mail class to
return erroneous results for some mail messages.
It turns out that some Mail User Agents (notably certain versions of
Outlook) place a Tab (0x09) rather than a Space (0x20) character after
the ':' on some header lines. This was causing a problem in the
'_split_header' subroutine because it was explicitly searching for a
colon followed by a space (": ").
The new, attached version of Mail.pm avoids this problem by splitting
the header line into $key and $value components at the first ':' without
regard to the character that follows. Leading and trailing whitespace is
then stripped from the $value component.
I hope you will find this fix acceptable and will be able to incorporate
it into the next version of Mail-MBoxParser.
Thank you also once again for writing and maintaining this wonderfully
useful module.
Best regards,
<ED>
P.S. I apologize if this is a repeat message for you. My direct e-mails to you received no response and I suspected that they were getting caught in a junk mail filter.
Attachment:
Mail.pm
Description: Perl program
- Prev by Date: Re: ANNOUNCE: WWW::YouTube
- Next by Date: Re: Inserting CLOBS into Oracle using perl
- Previous by thread: Inserting CLOBS into Oracle using perl
- Next by thread: manipulate csv module
- Index(es):
Relevant Pages
|