Make sure there is not space in base64 value of the subject (#335)

This commit is contained in:
Clément Oudot 2011-06-22 15:31:36 +00:00
parent 4be4780917
commit 93d92e5577

View File

@ -55,7 +55,9 @@ sub send_mail {
if $self->{mailReplyTo};
# Encode the subject
$subject = "=?$charset?B?" . encode_base64($subject) . "?=";
$subject = encode_base64($subject);
$subject =~ s/\s//g;
$subject = "=?$charset?B?" . $subject . "?=";
# Detect included images (cid)
my %cid = ( $body =~ m/"cid:([^:]+):([^"]+)"/g );