manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cihad Guzel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CONNECTORS-1420) Incorrect Date Comparison in Email Filtering
Date Wed, 26 Apr 2017 20:32:04 GMT
Cihad Guzel created CONNECTORS-1420:
---------------------------------------

             Summary: Incorrect Date Comparison in Email Filtering
                 Key: CONNECTORS-1420
                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1420
             Project: ManifoldCF
          Issue Type: Bug
          Components: Email connector
    Affects Versions: ManifoldCF 2.7
            Reporter: Cihad Guzel
             Fix For: ManifoldCF 2.8
         Attachments: CONNECTORS-1420.patch

Email date filtering  doesn't work correctly. 

{code}
      else if (findParameterName.equals(EmailConfig.EMAIL_START_DATE)) {
        comparisonTerm = ComparisonTerm.LT;
      } else if (findParameterName.equals(EmailConfig.EMAIL_END_DATE)) {
        comparisonTerm = ComparisonTerm.GT;
      }
{code}

It must be as follow: 

{code}
      else if (findParameterName.equals(EmailConfig.EMAIL_START_DATE)) {
        comparisonTerm = ComparisonTerm.GT;
      } else if (findParameterName.equals(EmailConfig.EMAIL_END_DATE)) {
        comparisonTerm = ComparisonTerm.LT;
      }
{code}

Reference: [ComparisonTerm|https://www.gnu.org/software/classpathx/javamail/javadoc/javax/mail/search/ComparisonTerm.html#LT]

{noformat}
ComparisonTerm.GT : The greater than operator.
ComparisonTerm.LT : The less than operator.
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message