Author Topic: create or modify sieves on server  (Read 734 times)

Offline pchantry

  • Newbie
  • *
  • Posts: 1
create or modify sieves on server
« on: December 20, 2018, 05:43:54 AM »
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 "my.account@gmail.com";
        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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,248
Re: create or modify sieves on server
« Reply #1 on: December 21, 2018, 12:05:44 PM »
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ā€¦