我每天都在使用 CFIMAP 下载电子邮件附件。尽管到目前为止我已经尝试过,但脚本是从我的所有文件夹中读取电子邮件,而不是仅从收件箱中读取。有人知道怎么修这个东西吗?
这是我的代码:
<cfimap
server = "mail.example.com"
username = "user@sexample.com"
action="open"
secure="yes"
password = "pass"
connection = "mail.example.com" >
<cfimap
action="GetAll"
folder="Inbox"
name="test"
attachmentpath="e:\testfolder"
GenerateUniqueFilenames="yes"
connection="mail.example.com" >
<cfimap
action="MoveMail"
newfolder="processedEmails"
stoponerror="true"
connection="mail.example.com">
<cfimap action="close" connection = "mail.example.com">