djc / tokio-imap

Tokio-based IMAP implementation
Apache License 2.0
123 stars 42 forks source link

Express nullability of LIST delimiter response #33

Closed jonhoo closed 5 years ago

jonhoo commented 5 years ago

RFC 3501 section 7.2.2 states that:

A NIL hierarchy delimiter means that no hierarchy exists; the name is a "flat" name.

Which implies that MailboxDatum::List::delimiter should be an Option. I assume the same also applies to SubList::delimiter.