There should be a parallel MCOIMAPSearchKey to this one:

https://github.com/MailCore/mailcore2/blob/a2738c644b733f3ce3ffdce23724270bb835beb1/src/objc/abstract/MCOConstants.h#L193