Is it possible to take the contents of a mailbox and feed them to the account's .active_sieve file for reprocessing?
(For example, when editing the sieve file for my list account I introduced a typo, so a hundred or some list messages ended up in the inbox instead of filed properly into the maildir hierarchy. Not a huge deal, as it was simple enough to move them manually, but it got me wondering.
This would also be useful for testing.
-- Clarke's Law: Sufficiently advanced technology is indistinguishable from magic Clark's Law: Sufficiently advanced cluelessness is indistinguishable from malice Clark Slaw: Anything that has been severely damaged or destroyed by application of Clark's Law
On 29/09/2020 09:09 @lbutlr kremels@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?
(For example, when editing the sieve file for my list account I introduced a typo, so a hundred or some list messages ended up in the inbox instead of filed properly into the maildir hierarchy. Not a huge deal, as it was simple enough to move them manually, but it got me wondering.
This would also be useful for testing.
-- Clarke's Law: Sufficiently advanced technology is indistinguishable from magic Clark's Law: Sufficiently advanced cluelessness is indistinguishable from malice Clark Slaw: Anything that has been severely damaged or destroyed by application of Clark's Law
You can use imap sieve refilter. https://doc.dovecot.org/configuration_manual/sieve/plugins/imapfilter_sieve/
Aki
On 29 Sep 2020, at 01:21, Aki Tuomi aki.tuomi@open-xchange.com wrote:
On 29/09/2020 09:09 @lbutlr kremels@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.
-- Q is for QUENTIN who sank in the mire R is for RHODA consumed by a fire
On 29 Sep 2020, at 02:58, @lbutlr kremels@kreme.com wrote:
On 29 Sep 2020, at 01:21, Aki Tuomi aki.tuomi@open-xchange.com wrote:
On 29/09/2020 09:09 @lbutlr kremels@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@kreme.com /usr/local/virtual/kremels@kreme.com/.active_sieve "INBOX"
(After first running without -eW to double check)
-- "Back off, man. I'm a scientist."
On 29/09/2020 13:09 @lbutlr kremels@kreme.com wrote:
On 29 Sep 2020, at 02:58, @lbutlr kremels@kreme.com wrote:
On 29 Sep 2020, at 01:21, Aki Tuomi aki.tuomi@open-xchange.com wrote:
On 29/09/2020 09:09 @lbutlr kremels@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@kreme.com /usr/local/virtual/kremels@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
participants (2)
-
@lbutlr
-
Aki Tuomi