Merge pull request #247 from christianeisendle/x-spam_status_outlook_hack_fix

Replace all occurances of CR in X-Spam-Status
This commit is contained in:
Matt Simerson 2016-02-16 14:25:58 -08:00
commit 79deb8b061

View File

@ -273,7 +273,7 @@ sub insert_spam_headers {
if ($name eq 'X-Spam-Status') { if ($name eq 'X-Spam-Status') {
$self->parse_spam_header($new_headers->{$name}); $self->parse_spam_header($new_headers->{$name});
} }
$new_headers->{$name} =~ s/\015//; # hack for outlook $new_headers->{$name} =~ s/\015//g; # hack for outlook
$self->_cleanup_spam_header($transaction, $name); $self->_cleanup_spam_header($transaction, $name);
$transaction->header->add($name, $new_headers->{$name}, 0); $transaction->header->add($name, $new_headers->{$name}, 0);
} }