manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CONNECTORS-1420) Incorrect Date Comparison in Email Filtering
Date Wed, 26 Apr 2017 21:25:04 GMT

     [ https://issues.apache.org/jira/browse/CONNECTORS-1420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Karl Wright resolved CONNECTORS-1420.
-------------------------------------
    Resolution: Fixed

r1792821


> 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
>            Assignee: Karl Wright
>             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