Subject: | Mail::Header fold stops early |
Long lists of email addresses are only partially folded. The attached
program demonstrates the problem: after folding 3 lines worth of data,
the algorithm gives up and the last line is left with the remaining
characters.
Subject: | t.pl |
use Mail::Header;
$f = new Mail::Header();
$f->replace('To', 'nsg@example.com,felsing@example.com,tedsmith@example.com,heinzkil@example.com,lbennett@example.com,ehteague@example.com,tstave@example.com,klenn@example.com,butler@example.com,pfrantz@example.com,jenkins@example.com,meb@example.com,snb@example.com,btabb@example.com,emp@example.com,clist@example.com,jdfox@example.com,kzhang@example.com,vmitch@example.com,skgray@example.com,smidkiff@example.com,ANesbit@example.com,annie@example.com,jonjab@example.com,mrwatson@example.com,ebreak@example.com,mahyatt@example.com,acoffman@example.com,rthomas@example.com,dpwalton@example.com,mgrenci@example.com,mbean@example.com,jstaiger@example.com,johnruss@example.com,');
$f->fold(75);
$f->print;