Skip Menu |

This queue is for tickets about the MailTools CPAN distribution.

Report information
The Basics
Id: 4670
Status: resolved
Priority: 0/
Queue: MailTools

Owner: Nobody in particular
Requestors: strobert-cpan [...]

Bug Information
Severity: Important
Broken in: 1.58
Fixed in: (no value)

Subject: Mail::Header doesn't fold lines correctly
If I have header lines like this: To: "Steve Roberts" <>, "Steve Roberts (internet)" <>, "Test" <>, "bugtest" <> 1.58 code turns it into: To: "Steve Roberts" <>, "Steve Roberts (internet)" <>, "Test" <>, "bugtest" <> the attached patch "fixes" this. while($_[0] =~ s/^\s*( [^"]{$min,$max}?[\,\;] |[^"]{1,$max}\s - |[^\s"]*(?:"[^"]*"[^\s"]*)+\s + |[^\s"]*(?:"[^"]*"\s?[^\s"]*)+\s |[^\s"]+\s ) //x); basically the first regex trying to split on ,; doesn't have a hit (since we would grab < min (59 in this case -- maxlength is the default: 79)). I am not sure of how good/correct the fix is, but it is working for me.
Download x4
application/octet-stream 290b

Message body not shown because it is not plain text.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to