On 10 May 2019 22:23 @lbutlr via dovecot < dovecot@dovecot.org> wrote:


On 10 May 2019, at 02:34, Matthias Fechner via dovecot < dovecot@dovecot.org> wrote:
If I click in my email program now on `Not Spam` it is learn as HAM but moved to the INBOX.
I would like that the email is not moved to INBOX but it should be moved through the sieve script of the user again, as it is a new email.
I think the way to do this would be for you to move the mail (after it gets moved to the INBOX) not a specific folder that sieve is watching and triggering that to run the scripts you want to ruin.

You cannot treat an existing mail as a new mail as far as I know.


--
'There's Mr Dibbler.' 'What's he selling this time?' 'I don't think he's
trying to sell anything, Mr Poons.' 'It's that bad? Then we're probably
in lots of trouble.' --Reaper Man
With 2.3 you could use

https://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/IMAPFilterSieve

to refilter mail. 

Aki Tuomi