You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2013/08/13 08:40:50 UTC

[2/2] git commit: CAMEL-6626 Fixed the search criteria NPE of camel-mail with thanks to Ales

CAMEL-6626 Fixed the search criteria NPE of camel-mail with thanks to Ales


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8cc6b57c
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8cc6b57c
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8cc6b57c

Branch: refs/heads/camel-2.11.x
Commit: 8cc6b57c879b6933829ec25eab3ffd6732e48b5d
Parents: 76d8bee
Author: Willem Jiang <ni...@apache.org>
Authored: Tue Aug 13 14:23:10 2013 +0800
Committer: Willem Jiang <ni...@apache.org>
Committed: Tue Aug 13 14:30:16 2013 +0800

----------------------------------------------------------------------
 .../java/org/apache/camel/component/mail/MailConverters.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/8cc6b57c/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConverters.java
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConverters.java b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConverters.java
index 661973f..8262c14 100644
--- a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConverters.java
+++ b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConverters.java
@@ -142,7 +142,7 @@ public final class MailConverters {
             }
         }
         if (simple.getToSentDate() != null) {
-            String s = simple.getFromSentDate();
+            String s = simple.getToSentDate();
             if (s.startsWith("now")) {
                 long offset = extractOffset(s, typeConverter);
                 builder = builder.and(new NowSearchTerm(SearchTermBuilder.Comparison.LE.asNum(), true, offset));
@@ -153,7 +153,7 @@ public final class MailConverters {
             }
         }
         if (simple.getFromReceivedDate() != null) {
-            String s = simple.getFromSentDate();
+            String s = simple.getFromReceivedDate();
             if (s.startsWith("now")) {
                 long offset = extractOffset(s, typeConverter);
                 builder = builder.and(new NowSearchTerm(SearchTermBuilder.Comparison.GE.asNum(), false, offset));
@@ -164,7 +164,7 @@ public final class MailConverters {
             }
         }
         if (simple.getToReceivedDate() != null) {
-            String s = simple.getFromSentDate();
+            String s = simple.getToReceivedDate();
             if (s.startsWith("now")) {
                 long offset = extractOffset(s, typeConverter);
                 builder = builder.and(new NowSearchTerm(SearchTermBuilder.Comparison.LE.asNum(), false, offset));