set imap flags in user sieve scripts
spi
spi at nurfuerspam.de
Sat Mar 11 18:30:36 UTC 2023
11.03.2023 19:23:21 Benny Pedersen <me at junc.eu>:
> spi skrev den 2023-03-11 13:34:
>
>> if address :domain "From" "whatever.com"{
>> fileinto :flags ["\\todo"] "working/whatever";
>> }
>
> require ["fileinto","imap4flags"];
imap4flags seems not to be accepted in an user script. My sieve editor shows an error. If I add require ["fileinto","imap4flags"]; to the script it just does not work.
As said it works in a global script, but not an user one.
>
> # rule:[set todo]
> if allof (header :contains "subject" "set imap flags in user sieve scripts", header :contains "from" "user at example.org", header :contains "to" "dovecot at dovecot.org")
> {
> setflag "todo";
> fileinto "todofolder";
> stop;
> }
>
> created in roundcube webmail
More information about the dovecot
mailing list