diff options
author | Eric Wong <e@yhbt.net> | 2020-05-07 21:05:50 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-05-09 08:59:10 +0000 |
commit | 46742d95647c7a80cb2f60d5c134717dd91e22e2 (patch) | |
tree | 43b6ef4aebba979e48eb9143cd491f1a5b3f7eea /script/public-inbox-learn | |
parent | 3b1b7abf814dbc7f2a737b2ca0e12b0fa518ff44 (diff) | |
download | public-inbox-46742d95647c7a80cb2f60d5c134717dd91e22e2.tar.gz |
PublicInbox::Eml has enough functionality to replace the Email::MIME-based PublicInbox::MIME.
Diffstat (limited to 'script/public-inbox-learn')
-rw-r--r-- | script/public-inbox-learn | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/public-inbox-learn b/script/public-inbox-learn index 4c10b68b..a33d813a 100644 --- a/script/public-inbox-learn +++ b/script/public-inbox-learn @@ -9,7 +9,7 @@ use strict; use warnings; use PublicInbox::Config; use PublicInbox::InboxWritable; -use PublicInbox::MIME; +use PublicInbox::Eml; use PublicInbox::Address; use PublicInbox::Spamcheck::Spamc; my $train = shift or die "usage: $usage\n"; @@ -20,7 +20,7 @@ if ($train !~ /\A(?:ham|spam|rm)\z/) { my $spamc = PublicInbox::Spamcheck::Spamc->new; my $pi_config = PublicInbox::Config->new; my $err; -my $mime = PublicInbox::MIME->new(do{ +my $mime = PublicInbox::Eml->new(do{ local $/; my $data = <STDIN>; $data =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s; |