Unverified Commit 9bfbff7b authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #1171 from ikedas/issue-1168

Newlines in header fields added by ARC feature should be normalized (#1168)
Fix suggested by @dpc22.
parents 28ada425 bce3c495
......@@ -629,6 +629,9 @@ sub arc_seal {
if (grep { $_ and /\AARC-Seal:/i } @seal) {
foreach my $ahdr (reverse @seal) {
my ($ah, $av) = split /:\s*/, $ahdr, 2;
# Normalize CRLF->LF for ARC header fields to avoid confusing the
# mail agent. See also the comment in dkim_sign().
$av =~ s/\r\n/\n/g;
$self->add_header($ah, $av, 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment