Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 91734
Status: resolved
Priority: 0/
Queue: Email-Sender

People
Owner: Nobody in particular
Requestors: MORITZ [...] cpan.org
Cc:
AdminCc:

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



Subject: Email::Sender::Simple::sendmail doubles empty lines
Sending an Email with Email::Sender::Simple::sendmail() doubles empty lines. The attached script is a simple example that can reproduce it. "a\nb" arrives as "a\nb", but "a\n\nb" arrives as "a\n\n\nb". I observed this on Debian Wheezy (perl 5.14.2) with exim as MTA, no idea if that matters.
Subject: email.pl
use 5.014; use strict; use warnings; use Email::Simple; use Email::Sender::Simple qw/sendmail/; my $email = Email::Simple->create( header => [ From => 'mlenz@noris.de', To => 'mlenz@noris.de', Subject => 'Empty lines are doubled', ], body => "a\n\nb", ); say $email->as_string; sendmail($email);
This should be fixed by 1.300015, released about 2yr ago -- rjbs