djc / tokio-imap

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

Add special-use mailboxes name attributes #135

Closed MichaelMcDonnell closed 2 years ago

MichaelMcDonnell commented 2 years ago

This change only adds the name attributes from RFC 6154 Special-Use Mailboxes and not any of the other features.

It should now be possible in a client app to identify the spam folder without matching on the name of the mailbox. Matching on the name of the mailbox is not reliable because it might be localized to the user's language.

djc commented 2 years ago

Exactly right, thanks!

MichaelMcDonnell commented 2 years ago

Great! Thanks!