5 Mar 2000 20:12
Formal Syntax in draft-crispin-imapv-09.txt
Cyrus Daboo <daboo <at> cyrusoft.com>
2000-03-05 19:12:32 GMT
2000-03-05 19:12:32 GMT
Hi Mark,
Is it possible to change the formal sytnax ever so slightly in this draft
to make it easier for extensions to add new search keys? Right now you have:
search-key = "ALL" / "ANSWERED" / "BCC" SP astring /
"BEFORE" SP date / "BODY" SP astring /
"CC" SP astring / "DELETED" / "FLAGGED" /
"FROM" SP astring / "KEYWORD" SP flag-keyword / "NEW" /
"OLD" / "ON" SP date / "RECENT" / "SEEN" /
"SINCE" SP date / "SUBJECT" SP astring /
"TEXT" SP astring / "TO" SP astring /
"UNANSWERED" / "UNDELETED" / "UNFLAGGED" /
"UNKEYWORD" SP flag-keyword / "UNSEEN" /
; Above this line were in [IMAP2]
"DRAFT" / "HEADER" SP header-fld-name SP astring /
"LARGER" SP number / "NOT" SP search-key /
"OR" SP search-key SP search-key /
"SENTBEFORE" SP date / "SENTON" SP date /
"SENTSINCE" SP date / "SMALLER" SP number /
"UID" SP set / "UNDRAFT" / set /
"(" search-key *(SP search-key) ")"
The presence of the 'search-key' inside of the search-key definition makes
it a little awkward for extensions to add new search keys. What I propose
is:
search-keys = search-key / "(" search-key *(SP search-key) ")"
search-key = "ALL" / "ANSWERED" / "BCC" SP astring /
"BEFORE" SP date / "BODY" SP astring /
"CC" SP astring / "DELETED" / "FLAGGED" /
(Continue reading)
They've already done a great deal of this work in their
Technical Report #18 <
RSS Feed