X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FFilter.pm;h=8b78a44163743dcd4a235a1bc661471e29f091e6;hb=c1abb946e53e4179666ebb290e31c2d9ddc40711;hp=4fdbe87e35adfd7dd6cf475dadd04ff5bfe1ab36;hpb=5a590bcb6813215a3c26b88bbf9af9f80258d20c;p=public-inbox.git diff --git a/lib/PublicInbox/Filter.pm b/lib/PublicInbox/Filter.pm index 4fdbe87e..8b78a441 100644 --- a/lib/PublicInbox/Filter.pm +++ b/lib/PublicInbox/Filter.pm @@ -28,15 +28,6 @@ sub run { my $content_type = $mime->header('Content-Type') || 'text/plain'; - # kill potentially bad/confusing headers - # Note: ssoma already does this, but since we mangle the message, - # we should do this before it gets to ssoma. - # We also kill Mail-{Followup,Reply}-To headers due to - # the nature of public-inbox having no real subscribers. - foreach my $d (qw(status lines content-length)) { - $mime->header_set($d); - } - if ($content_type =~ m!\btext/plain\b!i) { return 1; # yay, nothing to do } elsif ($content_type =~ $MIME_HTML) {