Closed duesee closed 4 months ago
See IMAP4 Binary Content Extension, Collected Extensions to IMAP4 ABNF, and IMAP4 Non-synchronizing Literals.
Note: BINARY and LITERAL+ can both be used. ~{123+}\r\n is valid, too.
~{123+}\r\n
literal8
literal8 = "~{" number "}" CRLF *OCTET
append
append /= "APPEND" SP mailbox [SP flag-list] [SP date-time] SP literal8
fetch-att
fetch-att =/ "BINARY" [".PEEK"] section-binary [partial] / "BINARY.SIZE" section-binary section-binary = "[" [section-part] "]" partial = "<" number "." nz-number ">"
msg-att-static
msg-att-static =/ "BINARY" section-binary SP (nstring / literal8) / "BINARY.SIZE" section-binary SP number
resp-text-code
resp-text-code =/ "UNKNOWN-CTE"
Capability::Binary
#[allow(unused)]
~{123}
astring
See IMAP4 Binary Content Extension, Collected Extensions to IMAP4 ABNF, and IMAP4 Non-synchronizing Literals.
Note: BINARY and LITERAL+ can both be used.
~{123+}\r\n
is valid, too.TODO
literal8
(#445) (needed for #432).append
(to allowliteral8
as well). (#451)fetch-att
.msg-att-static
.resp-text-code
.Capability::Binary
(#451)#[allow(unused)]
forliteral8
.Notes
~{123}
must only be used during the cases defined above. Not, e.g., in allastring
s.