Author Topic: create or modify sieves on server  (Read 1003 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 "";

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,

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,455
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 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ā€¦