diff options
author | Eric Wong <e@80x24.org> | 2016-06-26 23:06:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-26 23:06:48 +0000 |
commit | a0c07cba0e5d8b6a518e276e83477fd3892efaec (patch) | |
tree | 025c0d0b751f9ec741f0d305be3ffda7aafb7bc7 /script/public-inbox-learn | |
parent | 10d076c7731c702e70950d06d673be163aa59be9 (diff) | |
download | public-inbox-a0c07cba0e5d8b6a518e276e83477fd3892efaec.tar.gz |
Oops... While we're at it, drop blank lines before the "From ", too, since it could happen.
Diffstat (limited to 'script/public-inbox-learn')
-rwxr-xr-x | script/public-inbox-learn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/public-inbox-learn b/script/public-inbox-learn index 7ef2a312..09fd7c8f 100755 --- a/script/public-inbox-learn +++ b/script/public-inbox-learn @@ -26,7 +26,7 @@ my $err; my $mime = Email::MIME->new(eval { local $/; my $data = scalar <STDIN>; - $data =~ s/\AFrom [^\r\n]*\r?\n//s; + $data =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s; eval { if ($train eq 'ham') { $spamc->hamlearn(\$data); |