diff options
author | Eric Wong <e@80x24.org> | 2018-04-20 03:27:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-04-20 03:27:53 +0000 |
commit | 0ef5872cee83f07c9ae7afceb2e92257507dc3ca (patch) | |
tree | 5464f1ae1d633a31cdf4bcb9808e5a66f3113528 /lib/PublicInbox/MID.pm | |
parent | e350de7fdbe12dafc36e893e66ce8c93ec6dc3f2 (diff) | |
download | public-inbox-0ef5872cee83f07c9ae7afceb2e92257507dc3ca.tar.gz |
For Subject/To/Cc/From headers, we squeeze them to a space (' '). For Message-IDs (including References/In-Reply-To), '\t', '\n', '\r' are deleted since some MUAs might screw them up: https://public-inbox.org/git/656C30A1EFC89F6B2082D9B6@localhost/raw
Diffstat (limited to 'lib/PublicInbox/MID.pm')
-rw-r--r-- | lib/PublicInbox/MID.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/MID.pm b/lib/PublicInbox/MID.pm index c82e8401..cd56f272 100644 --- a/lib/PublicInbox/MID.pm +++ b/lib/PublicInbox/MID.pm @@ -87,6 +87,7 @@ sub uniq_mids ($) { my @ret; my %seen; foreach my $mid (@$mids) { + $mid =~ tr/\n\t\r//d; if (length($mid) > MAX_MID_SIZE) { warn "Message-ID: <$mid> too long, truncating\n"; $mid = substr($mid, 0, MAX_MID_SIZE); |