[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1771] trunk/LedgerSMB/Mailer.pm
- Subject: SF.net SVN: ledger-smb: [1771] trunk/LedgerSMB/Mailer.pm
- From: ..hidden..
- Date: Wed, 17 Oct 2007 09:59:41 -0700
Revision: 1771
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1771&view=rev
Author: tetragon
Date: 2007-10-17 09:59:33 -0700 (Wed, 17 Oct 2007)
Log Message:
-----------
Switch subject encoding module from MIME::Base64 to encode (fixes 1815075)
Modified Paths:
--------------
trunk/LedgerSMB/Mailer.pm
Modified: trunk/LedgerSMB/Mailer.pm
===================================================================
--- trunk/LedgerSMB/Mailer.pm 2007-10-17 16:09:40 UTC (rev 1770)
+++ trunk/LedgerSMB/Mailer.pm 2007-10-17 16:59:33 UTC (rev 1771)
@@ -35,6 +35,7 @@
package LedgerSMB::Mailer;
+use Encode;
use MIME::Lite;
use MIME::Base64;
use LedgerSMB::Sysconfig;
@@ -63,11 +64,7 @@
$h{$_} = $self->{$_};
}
- $h{subject} =
- ( $self->{subject} =~ /([\x00-\x1F]|[\x7B-\xFFFF])/ )
- ? "Subject: =?$self->{charset}?B?"
- . MIME::Base64::encode( $self->{subject}, "" ) . "?="
- : "Subject: $self->{subject}";
+ $h{subject} = "Subject: ".Encode::encode('MIME-Header', $self->{subject});
my $msg = MIME::Lite->new(
'From' => $self->{from},
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.