[ 
https://issues.apache.org/jira/browse/NIFI-3976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16024783#comment-16024783
 ] 

ASF GitHub Bot commented on NIFI-3976:
--------------------------------------

Github user joewitt commented on the issue:

    https://github.com/apache/nifi/pull/1857
  
    very nice Koji!  Will keep an eye on the travis results and if all looks 
good will merge.  Code changes make sense and really appreciate you taking care 
of this.


> 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
>
> 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