GitHub user tupusun opened a pull request: https://github.com/apache/camel/pull/1072
Camel Mail component seems not work with searchTerm.fromSentDate=now-24h on IMAP Camel Mail component seems not work with searchTerm.fromSentDate=now-24h on IMAP When it is configured on the URL, exceptions happens like below, the javamail code shows that NowSearchTerm is not in the list of supported term on generating sequence args. javax.mail.MessagingException: Search too complex at com.sun.mail.imap.IMAPFolder.getSortedMessages(IMAPFolder.java:2413) ~[javax.mail-1.5.5.jar:1.5.5] at org.apache.camel.component.mail.MailConsumer.retrieveMessages(MailConsumer.java:254) ~[camel-mail-2.17.2.jar:2.17.2] at org.apache.camel.component.mail.MailConsumer.poll(MailConsumer.java:118) ~[camel-mail-2.17.2.jar:2.17.2] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:175) [camel-core-2.17.2.jar:2.17.2] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:102) [camel-core-2.17.2.jar:2.17.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_66] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_66] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_66] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_66] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66] Caused by: javax.mail.search.SearchException: Search too complex at com.sun.mail.imap.protocol.SearchSequence.generateSequence(SearchSequence.java:129) ~[javax.mail-1.5.5.jar:1.5.5] at com.sun.mail.imap.protocol.SearchSequence.and(SearchSequence.java:193) ~[javax.mail-1.5.5.jar:1.5.5] at com.sun.mail.imap.protocol.SearchSequence.generateSequence(SearchSequence.java:81) ~[javax.mail-1.5.5.jar:1.5.5] at com.sun.mail.imap.protocol.IMAPProtocol.sort(IMAPProtocol.java:2607) ~[javax.mail-1.5.5.jar:1.5.5] at com.sun.mail.imap.IMAPFolder.getSortedMessages(IMAPFolder.java:2402) ~[javax.mail-1.5.5.jar:1.5.5] ... 11 common frames omitted You can merge this pull request into a Git repository by running: $ git pull https://github.com/apache/camel camel-2.17.x Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/1072.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1072 ---- commit 18eef8c05656a37fbf00db0f30cdb467e38b92a2 Author: Martin Lind <mar...@spegelreflex.se> Date: 2016-04-07T06:58:38Z Support for PATCH method in Rest DSL Added new verb to the Rest model, the PatchVerbDefinition and made made the jaxb parser aware of this new file. Added instructions in RestDefinition and VerbDefinition on how to handle this new verb. commit f465ab51d36b5043f32b643e52b5ea59ebcbbf48 Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-07T10:33:25Z CAMEL-9828: Swagger seems to inject empty headers for query parameters commit 8bdbe398c2231de0f8e5e269f015e0fb7f716f57 Author: Jonathan Anstey <jans...@gmail.com> Date: 2016-04-07T19:03:06Z CAMEL-9838 - Add ends with operator to simple language commit 8ebe5d68a0d73572932f2f8c0b35e2ec76e956f2 Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-08T06:42:29Z Fixed archetype commit 1749f36c451540c2bd0090a6228d44b2ce66ce97 Author: Edward Welch <e...@edjusted.com> Date: 2016-04-07T11:48:16Z Adding a new endpoint property to the HttpCommonEndpoint which allows preserving the Host header in reverse proxy applications, this class is ued by the Http, Http4, and Jetty producers. Updated the HttpProducer (Jetty/HTTP4) to set the Host header when this flag is enabled. The older HTTP component does not readily let us override the Host header, this component will not support this parameter Updated the Integration Test to validate the behavior for both when the new parameter is set, and unset. commit a8f32d4ec485419cd196988f0de938d6f9b3cc49 Author: Andrea Cosentino <anco...@gmail.com> Date: 2016-04-08T11:26:49Z CAMEL-9835: Enable kafka consumer to subcribe to multiple topics commit a4543cffb7033595082fe1e8ddeb9616802c05c0 Author: Andrea Cosentino <anco...@gmail.com> Date: 2016-04-08T11:33:23Z CAMEL-9835: Updated documentation commit 52c30bf28404b328583f81aa06ccf54db9d3be98 Author: Andrea Cosentino <anco...@gmail.com> Date: 2016-04-08T13:03:50Z CAMEL-9818: Camel kafka consumer adds legacy (deprecated properties) commit a13924a4fbe368c7bc9105f171d56665a61a7eb2 Author: James Netherton <jamesnether...@gmail.com> Date: 2016-04-08T15:33:52Z [CAMEL-9842] Expose additional endpoint configuration options to UndertowHost handler methods commit 10d69f22de4a17522f70661d7316b582c7426037 Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-09T05:55:05Z CAMEL-9841: NPE in MIME-Multipart Data Format if no file name is defined on attachment. Thanks to Stephan Siano for the patch. commit a23f82fc58f21b93a2fdca928944bbe2308cb860 Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-09T06:49:22Z CAMEL-9838 - Add starts with operator to simple language commit a721125e8b92b3b65ef2ffe5a2946cf2b3142d74 Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-09T07:17:55Z Add test based on user forum trouble commit 5732ceb1cd2f986b7da604dd59d767d944cc7f14 Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-09T07:19:18Z CAMEL-9845: camel-jdbc - Silent ignore close errors commit f7d0c2dcb1e6a5192c6293db5e6623da64eb61b2 Author: Martin Scharm <mar...@binfalse.de> Date: 2016-04-09T09:53:12Z camel-xmpp: fix private chat response issue Responding to a private chat wasn't able because the message was always sent to String participant = exchange.getIn().getHeader(XmppConstants.TO, String.class); However, the `XmppConstants.TO` in such messages is the camel instance (which received the message) and not the chat's other participant. Thus, responding to a chat message always resultet in a message to itself. This patch fixes that issue and addresses messages always to String participant = endpoint.getParticipant(); commit 6ce08c34be80fd814bb76132de25806c4bf88ac7 Author: Gregor Zurowski <gre...@zurowski.org> Date: 2016-04-09T21:32:53Z Add Spring schema references for release 2.16.3 Signed-off-by: Gregor Zurowski <gre...@zurowski.org> commit e7a5b187c1bfb93e100d10f0d4957bf454e8680a Author: Andrea Cosentino <anco...@gmail.com> Date: 2016-04-11T07:07:08Z CAMEL-9852: Camel-weather: freegeoip.net is no longer available. Need switch to something else. commit e3adb2e3cad67de9a79202246ed7c3d4a8334fb9 Author: Andrea Cosentino <anco...@gmail.com> Date: 2016-04-11T09:48:27Z CAMEL-9853: Camel-CXF: Possible NPE in DefaultCXFBinding commit 3fcbad2bdd26f7f093d0f5b72a2641b6e9d9ee71 Author: Andrea Cosentino <anco...@gmail.com> Date: 2016-04-12T11:49:35Z CAMEL-9860: csv dataformat - Should have quoteMode option in model commit 48470750602b9588af0a1123e7b817ddfd190eae Author: Andrea Cosentino <anco...@gmail.com> Date: 2016-04-12T11:58:38Z Fixed CS commit 4d6da3b7b0f293271ef4297683c854c08f9c82f8 Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-13T09:05:45Z CAMEL-9863: Fixed bug in doWhileLoop when calling async component. Thanks to Sanigo for unit test. commit eb2ea7bcff7382ff93cd10c9f6189b193bb0b8c2 Author: jpoth <jp...@redhat.com> Date: 2016-04-12T09:36:15Z CAMEL-9859: Add Netty4 Channel Options back. commit 8f16f02b73a0f9e8742aa34e8e3731d66f9c2c39 Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-13T09:31:10Z Fixed CS. This closes #941 commit 4475b798caaf252692d9e72105a491f499fe695e Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-13T09:34:59Z CAMEL-9859: Remove the 2x set option commit 0a5ac8ce98d2978e9e8b349cc1ffa5debe6bd295 Author: Martin Scharm <mar...@binfalse.de> Date: 2016-04-10T08:36:52Z camel-twitter: removed the truncation Twitter status updates were truncated to 160 chars if they were longer. However the twitter limit is 140 chars, so this truncation didn't have any effect and I removed it. commit f043e472a3e0579966f922c72c4a3adc10f90e07 Author: James Netherton <jamesnether...@gmail.com> Date: 2016-04-13T10:48:11Z [CAMEL-9862] Fix potential NPE in UndertowComponent.unregisterConsumer commit 57f9f49c2292aeecf0c38c7005a1ffea9d91bd8f Author: Quinn Stevenson <qu...@pronoia-solutions.com> Date: 2016-04-13T17:40:22Z CAMEL-9876 - fix IndexOutOfBounds exception when MSH-18 isn't in message commit dd45d2162c0564e59b316316efa39644053f54d2 Author: Tomas Rohovsky <tomasrohov...@seznam.cz> Date: 2016-04-13T20:34:35Z CAMEL-9866 @PropertyInject doesn't work with Spring-Boot commit 5f3cb2eb1d8d9a3aa886a9a30b91ffb1887927da Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-15T06:09:16Z CAMEL-9851: Fixed NPE in consumer if path is empty commit 1eed481855aa248a3c474a2bf0ea03bf8b379877 Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-15T06:51:31Z CAMEL-9851: zookeeper create operation should create sub paths. commit 365de16531bc648b3fd8ae4ddcd906a3685c8e19 Author: Claus Ibsen <davscl...@apache.org> Date: 2016-04-15T06:53:28Z Fixed CS ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---