Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 78094
Status: resolved
Priority: 0/
Queue: Mail-Sender

People
Owner: Nobody in particular
Requestors: alladdin [...] netsafe.cz
Cc:
AdminCc:

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



Subject: Unknown encoding '...' - unable to send file by MailFile or Part
died with error: Unknown encoding '::MerchantSales' at /opt/perl-5.14.2/lib/site_perl/5.14.2/Mail/Sender.pm line 96. I think that condition on line 2146 is wrong (!~ instead of =~). I attached patch.
Subject: MailSender.patch
--- /opt/perl/lib/site_perl/5.14.2/Mail/Sender.pm 2012-05-27 21:56:00.000000000 +0000 +++ perllib/Mail/Sender.pm 2012-06-28 13:52:58.000000000 +0000 @@ -2143,7 +2143,7 @@ $self->{'encoding'} = $encoding; if (defined $charset and $charset and $ctype !~ /charset=/i) { $ctype .= qq{; charset="$charset"} - } elsif (!defined $charset and $ctype !~ /charset="([^"]+)"/) { + } elsif (!defined $charset and $ctype =~ /charset="([^"]+)"/) { $charset = $1; }
From: jason.sherry [...] asburyseminary.edu
Thanks, we were running into issues with this as well. On Thu Jun 28 10:04:42 2012, alladdin wrote: Show quoted text
> died with error: > Unknown encoding '::MerchantSales' at > /opt/perl-5.14.2/lib/site_perl/5.14.2/Mail/Sender.pm line 96. > > I think that condition on line 2146 is wrong (!~ instead of =~). > > I attached patch.
I do believe you are right. Thanks a lot for the patch! It will be in 0.8.22 (to be released shortly)