iCloud IMAP server bug

I previously got no relevant replies here so I'm trying again. I'm hoping to connect to an Apple engineer here.

Issue description:

For some fetched messages, the ENVELOPE's message-ID contains unescaped double quotes where those are not allowed according to the RFC (not allowed to link to that here but it's specified in section 9 of the RFC3501).

Like this:

"<"392889836.11.1529401004417.JavaMail.Redacted"@Redacted>"

This causes some IMAP clients to crash or not sync properly (hence not working well or at all with iCloud mail accounts).

Proposed fix

The double quotes iCloud returns in the response should instead be escaped like this:

"<\"392889836.11.1529401004417.JavaMail.Redacted\"@Redacted>"

in order to comply with the RFC.

More details

For more details about how I discovered this issue, please see this.

Replies

I'm hoping to connect to an Apple engineer here.

That’s unlikely [1]. DevForums is primarily focused on the APIs in Apple’s platform SDKs, and so we generally don’t hear a lot from the folks who work on iCloud server infrastructure. If you believe that iCloud IMAP is doing the wrong thing, the best way to get that feedback to the folks who work on this stuff is to file a bug.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Well, you’ve connected with me, and I do have Engineer in my job title (-: