apache骆驼邮件-在“自”上使用自定义searchTerm

时间:2019-03-19 21:38:26

标签: apache email apache-camel

只是一个骆驼邮件问题。

FROM searchTerm是否支持多个电子邮件地址? 我有一个可以发送多个源电子邮件地址的用例。

@Override
public void configure() throws Exception {

    if (validateConfiguration()) {

        // Format the From Endpoint from Parameters.
        final String fromStr = String.format("%s://%s:%s?username=%s&password=%s"
                        + "&delete=%s&mail.pop3.forgettopheaders=%s"
                        + "&consumer.delay=%s" 
                        + "&consumer.initialDelay=%s"
                        + "&maxMessagesPerPoll=%s" 
                        + "&fetchSize=%s"
                        + "&mapMailMessage=false" 
                        + "&handleFailedMessage=true"
                        + "&skipFailedMessage=true"
                        + "&searchTerm.unseen=false"
                        + "&searchTerm.subject=%s"
                        + "&searchTerm.from=%s",
                protocol, host, port, username, password, mailDelete,
                pop3Headers, pollDelay, initialDelay, maxMessagesPerPoll,
                fetchSize, from);  //subject
        // + "&sortTerm=reverse,date"

        // Format the To Endpoint from Parameter(s).
        //final String toStr = String.format("%s", toEndpoint);
        final String toStr = String.format("%s", destination);      

        final String toStr = String.format("%s", preDestination);

从路线的属性文件加载

subject =导出文件+ V2 + OMV +附加 来自=myemailaddress@something.com

可以接受吗? 来自= myemailaddress @ something.com,myotheraddress @ somewhere.com

0 个答案:

没有答案