Hi,

have a look at this:
https://github.com/mailcow/mailcow-dockerized/issues/2012

and also:
https://wiki.dovecot.org/Pigeonhole/Sieve/Configuration#Script_Locations
https://wiki.dovecot.org/Pigeonhole/Sieve/Plugins/Extprograms

maybe it helps you to solve your problem



--- Original Nachricht ---
Betreff: Sieve setting a flag on the server (with sieve?)
Von: "Marc Roos" <m.roos@f1-outsourcing.eu>
An: "dovecot" <dovecot@dovecot.org>
Datum: 17-02-2020 16:50



I want to run a cron job for specific users. I thought the easiest would
be a sieve plugin that sets some text in managesieve.sieve. And I just
have my cron job check for this setting.

This is the forward sieve:

if false # true
{
        redirect :copy "test@test.com";
}

So maybe something like:

if false # true
{
        # cronjob1
}

Or is there a better way of doing such a thing?