From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D4DEF1F4B4 for ; Thu, 1 Apr 2021 10:12:20 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] lei: maildir: handle "forwarded" keyword as "P" Date: Thu, 1 Apr 2021 10:12:19 +0000 Message-Id: <20210401101219.40085-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: mbox and IMAP seem to have no way of describing this keyword. but Maildir does with the "P" flagged (for "passed"). --- lib/PublicInbox/LeiToMail.pm | 3 ++- lib/PublicInbox/MdirReader.pm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/LeiToMail.pm b/lib/PublicInbox/LeiToMail.pm index 4c33c752..da633da4 100644 --- a/lib/PublicInbox/LeiToMail.pm +++ b/lib/PublicInbox/LeiToMail.pm @@ -27,8 +27,9 @@ $PublicInbox::GitAsyncCat::GCF2C = 0; my %kw2char = ( # Maildir characters draft => 'D', flagged => 'F', + forwarded => 'P', # passed answered => 'R', - seen => 'S' + seen => 'S', ); my %kw2status = ( diff --git a/lib/PublicInbox/MdirReader.pm b/lib/PublicInbox/MdirReader.pm index 30e6f8ad..1685e4d8 100644 --- a/lib/PublicInbox/MdirReader.pm +++ b/lib/PublicInbox/MdirReader.pm @@ -37,7 +37,8 @@ sub maildir_each_file ($$;@) { } } -my %c2kw = ('D' => 'draft', F => 'flagged', R => 'answered', S => 'seen'); +my %c2kw = ('D' => 'draft', F => 'flagged', P => 'forwarded', + R => 'answered', S => 'seen'); sub maildir_each_eml ($$;@) { my ($dir, $cb, @arg) = @_;