Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-Simple CPAN distribution.

Report information
The Basics
Id: 21463
Status: resolved
Priority: 0/
Queue: Email-Simple

People
Owner: Nobody in particular
Requestors: othello [...] duschweg.de
Cc:
AdminCc:

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



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
On Wed Sep 13 06:22:16 2006, othello@duschweg.de wrote: Show quoted text
> 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.
This was resolved recently in a released version.