Author Topic: managesieve not filtering  (Read 13396 times)

Offline skygge

  • Newbie
  • *
  • Posts: 6
managesieve not filtering
« Reply #15 on: April 12, 2010, 04:27:29 PM »
Hello everyone!
This is my first post.

I'm going to migrate from Squirrelmail ro Roundcube, but I cannot make Sieve filters to work. I tried "Managesieve" plugin and "Sieverules" also, but they don't work. I use Cyrus Imap.

In Squirrel I used Avelsieve plugin and it worked perfectly.
I noticed some differences between script syntax in both solutions: Avelsieve and Managesieve/Sieverules.

Here is an example:

Avelsieve:
#START_SIEVE_RULEYTo0OntzOjQ6ImNvbmQiO2E6MTp7aTowO2E6NDp7czo0OiJ0eXBlIjtzOjY6ImhlYWRlciI7czo2OiJoZWFkZXIiO3M6NDoiRnJvbSI7czo5OiJtYXRjaHR5cGUiO3M6ODoiY29udGFpbnMiO3M6MTE6ImhlYWRlcm1hdGNoIjtzOjIzOiJkZXYtbnVsbEByaG4ucmVkaGF0LmNvbSI7fX1zOjQ6InR5cGUiO3M6MToiMSI7czo2OiJhY3Rpb24iO3M6MToiNSI7czo2OiJmb2xkZXIiO3M6MTE6IklOQk9YLlRyYXNoIjt9END_SIEVE_RULE
if header :contains "From" "dev-null@rhn.redhat.com"
{
fileinto "INBOX.Trash";
}

Sieverules/Managesieve:
# rule:[test1]
if anyof (header :contains "Subject" "test")
{
        fileinto "INBOX.Trash";
}


First rule works, second - not.
Although, "sievec" compiles this script to .bc file without errors.

Has anyone an idea what could be wrong?
There's one more: Sieverules cannot import Avelsieve script. It shows "server error" message.

Please, help :)
Thanks,
Skygge.
« Last Edit: April 12, 2010, 04:29:35 PM by skygge »

Offline skygge

  • Newbie
  • *
  • Posts: 6
managesieve not filtering
« Reply #16 on: May 25, 2010, 09:55:30 AM »
Up!

I REALLY need an aswer....

Offline skygge

  • Newbie
  • *
  • Posts: 6
managesieve not filtering
« Reply #17 on: June 28, 2010, 04:45:40 PM »
Well... nobody knows what's going on...
I noticed that filters don't work ONLY when "vacation" rule is active.

Setting up vacation filter breaks other filters. Strange.... :(

Anyone can help?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
managesieve not filtering
« Reply #18 on: June 29, 2010, 02:51:31 AM »
take another look at the rule file. if you have multiple rules setup then by default both sieverules plugin use an if... elsif... structure so once one rule is matched thats it no more will be used. I'm not sure about managesieve, this used to do that too but i think it might use multiple ifs now. the behaviour of sieverules can be changed in the config.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦