Roundcube Community Forum

 

managesieve not filtering

Started by raiden, February 15, 2010, 04:40:05 AM

Previous topic - Next topic

skygge

#15
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" "[email protected]"
{
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.

skygge

Up!

I REALLY need an aswer....

skygge

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?

JohnDoh

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...