ImapTextToFlagsKeywords
function ImapTextToFlagsKeywords(const aText: string; out aFlags: tMailFlags; out aKeywords: TArray<string>; out aWhy: string): Boolean;
A flag list with keywords: the system flags into aFlags, each keyword once (compared without regard to case) into aKeywords. A keyword the store cannot hold (MailKeywordIsValid) is refused with aWhy.