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=-4.0 required=3.0 tests=ALL_TRUSTED,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 8A2211F9E5 for ; Mon, 5 Apr 2021 10:27:52 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/5] lei_tag: fix comments w.r.t support levels Date: Mon, 5 Apr 2021 10:27:49 +0000 Message-Id: <20210405102752.6249-3-e@80x24.org> In-Reply-To: <20210405102752.6249-1-e@80x24.org> References: <20210405102752.6249-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: RFC 8621 registers $flagged, $answered, $seen, $draft which map to IMAP, Maildir, and mbox Status/X-Status flags. $forwarded is noted in JMAP, but only Maildir and and the "Lemonade" IMAP profile (RFC 5550) support it --- lib/PublicInbox/LeiTag.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/PublicInbox/LeiTag.pm b/lib/PublicInbox/LeiTag.pm index c7a21c87..1dfc841d 100644 --- a/lib/PublicInbox/LeiTag.pm +++ b/lib/PublicInbox/LeiTag.pm @@ -8,11 +8,13 @@ use v5.10.1; use parent qw(PublicInbox::IPC PublicInbox::LeiInput); # JMAP RFC 8621 4.1.1 -my @KW = (qw(seen answered flagged draft), # system - qw(forwarded phishing junk notjunk)); # reserved +# https://www.iana.org/assignments/imap-jmap-keywords/imap-jmap-keywords.xhtml +my @KW = (qw(seen answered flagged draft), # widely-compatible + qw(forwarded phishing junk notjunk)); # rarely supported # note: RFC 8621 states "Users may add arbitrary keywords to an Email", # but is it good idea? Stick to the system and reserved ones, for now. -# The "system" ones map to Maildir flags and mbox Status/X-Status headers. +# The widely-compatible ones map to IMAP system flags, Maildir flags +# and mbox Status/X-Status headers. my %KW = map { $_ => 1 } @KW; my $L_MAX = 244; # Xapian term limit - length('L')