about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTP.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r--lib/PublicInbox/NNTP.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index d1f75f6f..c79f198b 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -506,6 +506,8 @@ sub set_art {
 sub msg_hdr_write ($$$) {
         my ($self, $hdr, $body_follows) = @_;
         $hdr = $hdr->as_string;
+        # fixup old bug from import (pre-a0c07cba0e5d8b6a)
+        $hdr =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s;
         utf8::encode($hdr);
         $hdr =~ s/(?<!\r)\n/\r\n/sg; # Alpine barfs without this