about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-18 09:13:12 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-18 09:14:16 +0000
commit0bf744b91df2d40580ff5776311d57dcede850b0 (patch)
tree2ac8de89a508a4194b2aeb0172dc68ecc144b18d /lib
parentf0ef0a56a8957d6f3095b1a24798e54b0b815d04 (diff)
downloadpublic-inbox-0bf744b91df2d40580ff5776311d57dcede850b0.tar.gz
In case people were running old buggy versions from 2016...
(and -convert should probably clean those up, eventually)
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Import.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index c7a96e1e..b25427ee 100644
--- a/lib/PublicInbox/Import.pm
+++ b/lib/PublicInbox/Import.pm
@@ -117,6 +117,9 @@ sub _cat_blob ($$$) {
         $n = read($r, my $lf, 1);
         defined($n) or die "read final byte of cat-blob failed: $!";
         die "bad read on final byte: <$lf>" if $lf ne "\n";
+
+        # fixup some bugginess in old versions:
+        $buf =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s;
         \$buf;
 }