From a025af04c1fc35de7c5e2d5c893b28923674ebd9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 16 Mar 2021 07:43:45 +0600 Subject: lei_store: remove maildir_keywords It's redundant and the same functionality is in MdirReader. --- lib/PublicInbox/LeiStore.pm | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib') diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm index 10fa9c54..771443db 100644 --- a/lib/PublicInbox/LeiStore.pm +++ b/lib/PublicInbox/LeiStore.pm @@ -159,14 +159,6 @@ sub remove_eml_keywords { \@docids; } -# TODO: move this to MdirReader, maybe... -# cf: https://cr.yp.to/proto/maildir.html -my %c2kw = ('D' => 'draft', F => 'flagged', R => 'answered', S => 'seen'); -sub maildir_keywords { - $_[-1] =~ /:2,([A-Z]+)\z/i ? - sort(map { $c2kw{$_} // () } split(//, $1)) : (); -} - sub add_eml { my ($self, $eml, @kw) = @_; my $im = $self->importer; # may create new epoch -- cgit v1.2.3-24-ge0c7