Re-sieve emails

Aki Tuomi aki.tuomi at open-xchange.com
Tue Sep 29 14:52:36 EEST 2020


> On 29/09/2020 13:09 @lbutlr <kremels at kreme.com> wrote:
> 
>  
> On 29 Sep 2020, at 02:58, @lbutlr <kremels at kreme.com> wrote:
> > On 29 Sep 2020, at 01:21, Aki Tuomi <aki.tuomi at open-xchange.com> wrote:
> >>> On 29/09/2020 09:09 @lbutlr <kremels at kreme.com> wrote:
> >>> Is it possible to take the contents of a mailbox and feed them to the account's .active_sieve file for reprocessing?
> > 
> >> You can use imap sieve refilter. https://doc.dovecot.org/configuration_manual/sieve/plugins/imapfilter_sieve/
> > 
> > That looks like what I want, but once I've enabled the plugin how would I actually tell dovcot to process a mailbox "Test" with the sieve script "new.sieve"?
> > 
> > That seems tone missing from the link above.
> 
> Never mind, I found this:
> 
> sieve-filter -v -eW -u kremels at kreme.com /usr/local/virtual/kremels at kreme.com/.active_sieve "INBOX"
> 
> (After first running without -eW to double check)
> 
> 
> 

Just to answer your question:

FILTER=SIEVE is IMAP extension, so you'd use it like

01 FILTER SIEVE PERSONAL default <SEARCH QUERY>

over IMAP.

Aki


More information about the dovecot mailing list