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

Joseph Witt updated NIFI-3976:
------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.0
           Status: Resolved  (was: Patch Available)

Thanks!  +1 merged to master

> ConsumePOP3 and ConsumeIMAP do NOT delete messages
> --------------------------------------------------
>
>                 Key: NIFI-3976
>                 URL: https://issues.apache.org/jira/browse/NIFI-3976
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.0.0
>            Reporter: Koji Kawamura
>            Assignee: Koji Kawamura
>             Fix For: 1.3.0
>
>
> Those processors have 'Delete Messages' property but even if user configured 
> it to 'true' messages are not deleted from mail server.
> AbstractEmailProcessor which is a superclass for both processors, has been 
> using:
> {code}
> emailMessage.setFlag(Flags.Flag.DELETED, this.shouldSetDeleteFlag);
> {code}
> However, since we are using Spring mail, the underlying receiver does not 
> close the inbox connection so messages are not deleted.
> Instead, we should use:
> {code}
> receiver.setShouldDeleteMessages(boolean)
> {code}
> To specify whether it should delete fetched messages or not.



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

Reply via email to