LSUB always returns all the subscribed folders. For example <tag> lsub "" "test/*" returns a list of all the folders and not just subscribed folders that are subfolders of test. I.e, it returns the same folder list as <tag> lsub "" "*". For more details please see https://bugzilla.mozilla.org/show_bug.cgi?id=1817707#c15
I deleted your accidental reply.
It looks like your goal is to report a bug against the iCloud mail server’s IMAP implementation. If so, I recommend that you file a bug about this in Feedback Assistant. DevForums is primarily focused on helping third-party developers with the APIs in Apple’s various platform SDKs. We can’t help you with issues like this.
Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"