Subject: | header_set doesn't handle multiple lines correctly |
Date: | Wed, 13 Sep 2006 12:13:43 +0200 |
To: | bug-Email-Simple [...] rt.cpan.org |
From: | Othello Maurer <othello [...] duschweg.de> |
Hi,
when setting multiple lines for one header with 'header_set', the
'as_string' method just prints the first line for this header.
You are pushing the header name only once onto the $self->{order} array,
however we think you should push the header name as often as lines
should be set.
The following test script:
----- snip ----
#!/usr/bin/perl
use strict;
use warnings;
use Email::Simple;
my $msg = new Email::Simple('');
$msg->header_set('X-Test', 'line 1', 'line 2', 'line 3');
print $msg->as_string(), "\n";
---- snip ----
reveals the bug.
Regards, Othello