manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1792821 - in /manifoldcf/trunk: CHANGES.txt connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
Date Wed, 26 Apr 2017 21:23:47 GMT
Author: kwright
Date: Wed Apr 26 21:23:47 2017
New Revision: 1792821

URL: http://svn.apache.org/viewvc?rev=1792821&view=rev
Log:
Fix for CONNECTORS-1420.  Committed on behalf of Cihad Guzel.

Modified:
    manifoldcf/trunk/CHANGES.txt
    manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1792821&r1=1792820&r2=1792821&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Wed Apr 26 21:23:47 2017
@@ -3,6 +3,9 @@ $Id$
 
 ======================= 2.8-dev =====================
 
+CONNECTORS-1420: Fix the email connector's date range code.
+(Cihad Guzel)
+
 CONNECTORS-1419: Handle the JDBC no-version-query case so that
 deletes work.
 (Julien Massiera, Karl Wright)

Modified: manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java?rev=1792821&r1=1792820&r2=1792821&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
(original)
+++ manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
Wed Apr 26 21:23:47 2017
@@ -367,9 +367,9 @@ public class EmailConnector extends org.
       } else if (findParameterName.equals(EmailConfig.EMAIL_BODY)) {
         searchClause = new BodyTerm(findParameterValue);
       } else if (findParameterName.equals(EmailConfig.EMAIL_START_DATE)) {
-        comparisonTerm = ComparisonTerm.LT;
-      } else if (findParameterName.equals(EmailConfig.EMAIL_END_DATE)) {
         comparisonTerm = ComparisonTerm.GT;
+      } else if (findParameterName.equals(EmailConfig.EMAIL_END_DATE)) {
+        comparisonTerm = ComparisonTerm.LT;
       }
 
       if (comparisonTerm != null) {



Mime
View raw message