Skip Menu |

This queue is for tickets about the MailTools CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: chris [...] ex-parrot.com
Cc:
AdminCc:

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



Subject: bug in as_string
The as_string method doesn't terminate lines correctly. Example: --- my $m = new Mail::Internet([ 'From: fish', 'To: soup', '', 'fish soup', 'is good for you' ]); print $m->as_mbox_string(); --- ends expected output: --- From: fish To: soup fish soup is good for you --- ends actual output: --- From: fish To: soup fish soupis good for you --- ends
According to the docs: The value of this option should be a reference to an array which contains the lines for the body of the message. Each line should be terminated with C<\n> (LF). So: terminate each of the lines in the array which you pass with a \n