diff options
author | Eric Wong <e@80x24.org> | 2021-03-16 07:43:44 +0600 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-16 06:32:06 -0400 |
commit | 327a4c0a44ab301922a2b2829d423d2e9fc18faf (patch) | |
tree | 1f59a48cac66b5bbb71191bc533eb3e701825b0d /lib/PublicInbox/LeiStore.pm | |
parent | 1b19e689f0b76290a437dd614da8685574e72b73 (diff) | |
download | public-inbox-327a4c0a44ab301922a2b2829d423d2e9fc18faf.tar.gz |
MboxReader is a more appropriate place for it than LeiStore.
Diffstat (limited to 'lib/PublicInbox/LeiStore.pm')
-rw-r--r-- | lib/PublicInbox/LeiStore.pm | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm index aaee5874..10fa9c54 100644 --- a/lib/PublicInbox/LeiStore.pm +++ b/lib/PublicInbox/LeiStore.pm @@ -159,18 +159,6 @@ sub remove_eml_keywords { \@docids; } -# cf: https://doc.dovecot.org/configuration_manual/mail_location/mbox/ -my %status2kw = (F => 'flagged', A => 'answered', R => 'seen', T => 'draft'); -# O (old/non-recent), and D (deleted) aren't in JMAP, -# so probably won't be supported by us. -sub mbox_keywords { - my $eml = $_[-1]; - my $s = "@{[$eml->header_raw('X-Status'),$eml->header_raw('Status')]}"; - my %kw; - $s =~ s/([FART])/$kw{$status2kw{$1}} = 1/sge; - sort(keys %kw); -} - # TODO: move this to MdirReader, maybe... # cf: https://cr.yp.to/proto/maildir.html my %c2kw = ('D' => 'draft', F => 'flagged', R => 'answered', S => 'seen'); |