diff options
author | Eric Wong <e@80x24.org> | 2021-04-05 10:27:49 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-04-05 19:10:13 +0000 |
commit | cfd9e2ed62acdca0168fc3561a96f24568aff0fe (patch) | |
tree | 42f98e0d370af0f7fb56512c57e1cf06e56fa91e | |
parent | 52a1d7a7e32340bfb9503c33740990bc5ed3d3aa (diff) | |
download | public-inbox-cfd9e2ed62acdca0168fc3561a96f24568aff0fe.tar.gz |
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
-rw-r--r-- | lib/PublicInbox/LeiTag.pm | 8 |
1 files 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') |