Filter 基于主题的Mule 3.8 POP3连接器过滤器

Filter 基于主题的Mule 3.8 POP3连接器过滤器,filter,mule,pop3,subject,Filter,Mule,Pop3,Subject,我尝试只从符合主题标准的共享邮箱接收电子邮件 这是我目前的流程。 它应该抓取电子邮件,将附件设置为有效负载,然后使用原始文件名将该有效负载保存到resources文件夹中的一个文件中,以便在以后的流中使用 <flow name="Retrieve_Email_and_Save_to_Attachments"> <pop3:inbound-endpoint host="00.00.00.00" user="xxx" password="xxx" connector-ref

我尝试只从符合主题标准的共享邮箱接收电子邮件

这是我目前的流程。 它应该抓取电子邮件,将附件设置为有效负载,然后使用原始文件名将该有效负载保存到resources文件夹中的一个文件中,以便在以后的流中使用

<flow name="Retrieve_Email_and_Save_to_Attachments">
    <pop3:inbound-endpoint host="00.00.00.00" user="xxx" password="xxx" connector-ref="POP3" responseTimeout="10000" doc:name="POP3" metadata:id="50f9b85e-6ff6-4b39-9185-75fcd91076a1"/>
    <message-property-filter pattern="subject = 'Test Mule File'" caseSensitive="false" scope="inbound" doc:name="Message Property"/>
    <expression-transformer doc:name="Set Payload from Attachments">
        <return-argument evaluator="attachments" expression="*.*"/>
    </expression-transformer>
    <set-variable variableName="fileName" value="#[payload.keySet().iterator().next()]" doc:name="Set fileName"/>
    <set-payload value="#[payload[flowVars.fileName].getContent()]" doc:name="Set Payload from first Attachment content"/>
    <logger message="#['\n\n']Payload is: #['\n\n'+payload+'\n\n']" level="INFO" doc:name="Logger"/>
    <file:outbound-endpoint path="src/main/resources/attachments/" outputPattern="#[flowVars.fileName]" connector-ref="File" responseTimeout="10000" mimeType="text/plain" doc:name="File"/>
</flow>

我遇到的问题是,POP3连接器会拾取邮箱中的所有电子邮件,而不考虑主题行内容,将其从服务器中删除,并且只处理符合条件的电子邮件

是否有办法只删除通过筛选条件的项目?
或者只接收通过筛选标准的电子邮件?

我认为mule没有mule文档中的功能

你可以选择这样做

从pop3中检索主题行并执行选择操作,然后您只能获得想要的主题行电子邮件