imap-codec icon indicating copy to clipboard operation
imap-codec copied to clipboard

feat: Implement `SPECIAL-USE`.

Open duesee opened this issue 2 years ago • 1 comments

See https://www.rfc-editor.org/rfc/rfc6154

duesee avatar May 18 '23 09:05 duesee

; Extends "create-param" from RFC 4466 [RFC4466]
create-param   =/  "USE" SP "(" [use-attr *(SP use-attr)] ")"

; Extends "mbx-list-oflag" from IMAP base [RFC3501]
mbx-list-oflag =/  use-attr

; Extends "list-select-independent-opt" from LIST-extended [RFC5258].
list-select-independent-opt =/  "SPECIAL-USE"

; Extends "return-option" from LIST-extended [RFC5258].
return-option =/ "SPECIAL-USE"

; Extends "resp-text-code" from IMAP [RFC3501].
resp-text-code =/  "USEATTR"

use-attr        =  "\All" /
                   "\Archive" /
                   "\Drafts" /
                   "\Flagged" /
                   "\Junk" /
                   "\Sent" /
                   "\Trash" /
                   use-attr-ext

; Reserved for future extensions.  Clients MUST ignore list attributes they do not understand.
; Server implementations MUST NOT generate extension attributes except as defined by future Standards-Track revisions of or extensions to this specification.
use-attr-ext    =  "\" atom

duesee avatar Aug 17 '23 10:08 duesee