* [PATCH 2/5] lei_tag: fix comments w.r.t support levels
2021-04-05 10:27 6% [PATCH 0/5] lei_to_mail fixes Eric Wong
@ 2021-04-05 10:27 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-04-05 10:27 UTC (permalink / raw)
To: meta
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')
^ permalink raw reply related [relevance 7%]
* [PATCH 0/5] lei_to_mail fixes
@ 2021-04-05 10:27 6% Eric Wong
2021-04-05 10:27 7% ` [PATCH 2/5] lei_tag: fix comments w.r.t support levels Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-04-05 10:27 UTC (permalink / raw)
To: meta
Some stuff I noticed while preparing for saved searches
Eric Wong (5):
lei_to_mail: trim down imports
lei_tag: fix comments w.r.t support levels
lei: maildir: move shard support to MdirReader
lei_to_mail: improve comments and reduce LoC
lei q: fix auth IMAP --output with remote mboxrd
lib/PublicInbox/InboxWritable.pm | 4 +-
lib/PublicInbox/LeiInput.pm | 2 +-
lib/PublicInbox/LeiOverview.pm | 14 ++---
lib/PublicInbox/LeiTag.pm | 8 +--
lib/PublicInbox/LeiToMail.pm | 92 ++++++++++++--------------------
lib/PublicInbox/LeiXSearch.pm | 4 +-
lib/PublicInbox/MdirReader.pm | 25 +++++++--
t/lei-convert.t | 2 +-
t/lei_to_mail.t | 8 +--
9 files changed, 73 insertions(+), 86 deletions(-)
^ permalink raw reply [relevance 6%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-04-05 10:27 6% [PATCH 0/5] lei_to_mail fixes Eric Wong
2021-04-05 10:27 7% ` [PATCH 2/5] lei_tag: fix comments w.r.t support levels Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).