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 /lib/PublicInbox/Import.pm | |
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 'lib/PublicInbox/Import.pm')
-rw-r--r-- | lib/PublicInbox/Import.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index de8ff55f..98aa7785 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -15,6 +15,7 @@ use PublicInbox::Address; use PublicInbox::MsgTime qw(msg_timestamp msg_datestamp); use PublicInbox::ContentId qw(content_digest); use PublicInbox::MDA; +use PublicInbox::Eml; use POSIX qw(strftime); sub new { @@ -137,7 +138,7 @@ sub check_remove_v1 { $info =~ m!\A100644 blob ([a-f0-9]{40})\t!s or die "not blob: $info"; my $oid = $1; my $msg = _cat_blob($r, $w, $oid) or die "BUG: cat-blob $1 failed"; - my $cur = PublicInbox::MIME->new($msg); + my $cur = PublicInbox::Eml->new($msg); my $cur_s = $cur->header('Subject'); $cur_s = '' unless defined $cur_s; my $cur_m = $mime->header('Subject'); |