Roundcube Community Forum

 

create or modify sieves on server

Started by pchantry, December 20, 2018, 05:43:54 AM

Previous topic - Next topic

pchantry

Hi all,

We have Roundcube running on a Debian server.

I would like to create or modify a sieve directly on the server, by editing the file ".../<account_id>/roundcube.script", adding the lines :
# rule:[gmail]
if true
{
        redirect "[email protected]";
        stop;
}

This done, the new sieve appears in Roundcube UI, but it does not work. To make it work, I need to clik on the "Save" button in the UI.

What should I do on the server to make the sieve work, without having to connect to the UI ?

Thank you,
Philippe

JohnDoh

The managesieve plugin that comes with roundcube does not do any actual filtering it is a client for managing the rules on the server. so if you are creating the file ".../<account_id>/roundcube.script" yourself are you also setting that ruleset as the active one? how exactly setting a ruleset as the active one works is dependant on your server's config but if you have a look at https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration you'll see it talks about ~/.dovecot.sieve and often this file is a symlink to the currently active ruleset.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...