Convert java code to coldfusion code (CFIMAP)
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to setup a connection to an office365 mailbox. This function is based on a java example (see https://stackoverflow.com/a/28689722/2482184 ). I am almost done but i cannot figure out how to convert the following line of code which is in the orignal java example: Message[] messages = inbox.search(new FlagTerm(new Flags(Flags.Flag.SEEN), false)); Below the full function: <cfscript> mailSettings = {}; mailSettings.server = "outlook.office365.com"; mailSettings.port = "993"; mailSettings.username = "xxxx"; mailSettings.password =