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

ASF subversion and git services commented on NIFI-3976:
-------------------------------------------------------

Commit 23cbc3b3463dcbd477b6ebcdbfbb2784f42e0749 in nifi's branch 
refs/heads/master from [~ijokarumawak]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=23cbc3b ]

NIFI-3976: This closes #1857. Fix ConsumePOP3 and ConsumeIMAP to delete 
messages.

Signed-off-by: joewitt <joew...@apache.org>


> 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