Skip Menu |

This queue is for tickets about the MIME-Lite CPAN distribution.

Report information
The Basics
Id: 84453
Status: new
Priority: 0/
Queue: MIME-Lite

People
Owner: Nobody in particular
Requestors: ricardo.urbina [...] gmail.com
Cc:
AdminCc:

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



Subject: Extra newline after boundary in multipart msg sent from mod_perl
Date: Fri, 5 Apr 2013 14:46:04 -0600
To: bug-MIME-Lite [...] rt.cpan.org
From: Ricardo Urbina <ricardo.urbina [...] gmail.com>
We're trying to send a multipart/mixed message and we're receiving it with an extra \n after the part boundary, which means MUA don't parse the headers and instead display the base64 contents of the attachment. This only happens when the message is sent from mod_perl, the very same code we're using was extracted from a CGI project where it works flawlessly. In MIME/Lite.pm, around line 2182 there's this code: ### Parts: my $part; foreach $part ( @{ $self->{Parts} } ) { $out->print("\n--$boundary\n"); $part->print($out); } If we change the couple of prints for $out->print("\n--$boundary\n" . $part->as_string) then it works fine... but it smells like we would take a performance hit. I don't even think this is a bug in MIME::Lite properly, but maybe it could be patched? I attach my proposed patch. But if it would not be patched, you got any ideas? I'm using perl v5.14.2, apache 2.0.63, mod_perl 2.0.7. Thanks for all the work, best regards, ~Ricardo Urbina

Message body is not shown because sender requested not to inline it.