jstedfast / MailKit

A cross-platform .NET library for IMAP, POP3, and SMTP.
http://www.mimekit.net
MIT License
6.04k stars 809 forks source link

How to get folder id for imap server which doesn't have ImapCapabilities.ObjectID capabilities ? #1764

Closed aldayneko closed 1 week ago

aldayneko commented 1 week ago

Hello,

My imap server doesn't have ImapCapabilities.ObjectID capabilities. That's why when I call GetFoldersAsync with StatusItems.MailboxId, folder id is always null However when I send imap command manually it returns the required ids ` 11 list "" "*" return (status (x-guid))

jstedfast commented 1 week ago

X-GUID is not the same as OBJECTID. X-GUID is some sort of custom IMAP extension that I've never seen. How did you even discover it? What server(s) supports this feature?

aldayneko commented 1 week ago

it's dovecot version 2.3

jstedfast commented 1 week ago

I can't find any documentation on any X-GUID IMAP feature.

Surprised Dovecot doesn't support OBJECTID. You should submit a feature request to the Dovecot developers to add that functionality.

X-* features are typically not worth my time to support since they come and go frequently as they are experimental features that very few IMAP servers support; usually only implemented in 1 IMAP server while the author(s) of said server are in the process of drafting an official IMAP protocol extension for the IETF to review & eventually ratify/publish.

Seems like X-GUID might have been some sort of precursor to the official OBJECTID extension.