Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2991

AbstractMailReceiver.class - - Mail Filter Expression - Not matched mails will NOT be discarded and flagged as seen.

    XMLWordPrintable

Details

    Description

      The method filterMessagesThruSelector (line 310) doesn't work as expected.

      If you set a mail-filter-expression normally the not matched mails shouldn't be marked as seen, but they are marked as seen. On line 325 in AbstractMailReceiver all messages are added to the filteredMessage List. Looks like there is an else clause missing so that it will only be added if the filter expression matches or if there is no filter expression.

      The Spring integration 2.1.x version contains this else clause in the receive method. See
      https://github.com/SpringSource/spring-integration/blob/2.1.x/spring-integration-mail/src/main/java/org/springframework/integration/mail/AbstractMailReceiver.java

      Line 272-287

      Attachments

        Activity

          People

            grussell Gary Russell
            svillgen Sven Illgen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: