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-purge | |
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-purge')
-rwxr-xr-x | script/public-inbox-purge | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/public-inbox-purge b/script/public-inbox-purge index 8301b06d..82a63b80 100755 --- a/script/public-inbox-purge +++ b/script/public-inbox-purge @@ -10,7 +10,7 @@ use Getopt::Long qw(:config gnu_getopt no_ignore_case auto_abbrev); use PublicInbox::AdminEdit; PublicInbox::Admin::check_require('-index'); use PublicInbox::Filter::Base qw(REJECT); -use PublicInbox::MIME; +use PublicInbox::Eml; require PublicInbox::V2Writable; my $usage = "$0 [--all] [INBOX_DIRS] </path/to/message"; @@ -26,7 +26,7 @@ $data =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s; my $n_purged = 0; foreach my $ibx (@ibxs) { - my $mime = PublicInbox::MIME->new($data); + my $mime = PublicInbox::Eml->new($data); my $v2w = PublicInbox::V2Writable->new($ibx, 0); my $commits = $v2w->purge($mime) || []; |