X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=script%2Fpublic-inbox-edit;fp=script%2Fpublic-inbox-edit;h=43ce9900eff3aa06f0d15fc35937adcbc2795d1b;hb=118ec03fd467173c401518becd54b621f9abb080;hp=24b7ed8b2d220bb7a1bc090c7228e2a7fb608e21;hpb=59cfad2031b5e9c86206e4a1562a84d2b549bf69;p=public-inbox.git diff --git a/script/public-inbox-edit b/script/public-inbox-edit index 24b7ed8b..43ce9900 100755 --- a/script/public-inbox-edit +++ b/script/public-inbox-edit @@ -130,7 +130,8 @@ foreach my $to_edit (values %$found) { my $tmp = $$old_raw; if (!$opt->{raw}) { my $oid = $smsg->{blob}; - print $edit_fh "From mboxrd\@$oid Thu Jan 1 00:00:00 1970\n"; + print $edit_fh "From mboxrd\@$oid Thu Jan 1 00:00:00 1970\n" + or die "failed to write From_ line: $!"; $tmp =~ s/^(>*From )/>$1/gm; } print $edit_fh $tmp or