Roundcube Community Forum

 

Sieverules (managesieve) plugin

Started by zoc, May 09, 2009, 05:35:25 AM

Previous topic - Next topic

bjorntj

Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

JohnDoh

thanks. the culprit is the `address :all`, sieverules doesn't understand the :all. If you go through the file manually and take that out (so you just have `address :contains ....`) then the rules will be visible in the plugin and my understanding is that :all is the default behaviour so it shouldnt effect what the filters do.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

bjorntj

Ok, now all the rules are displaying to the left... But still nothing happends when I click on rules... It says loading in the browser but the content portion is just empty?
 
And whatever I click after clicking a rule, nothing happens... I have to refresh the url without the sieve part to make roundcube work again...

BTJ
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

JohnDoh

you said you were using the repo version of the plugin, what version of RC are you using? the repo version will probably only work right with the svn trunk version of RC, or 0.4b which should be out shortly
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

bjorntj

I am using the released version of RC, 0.3.1 so I guess that's the reason.... But when I use the released version of sieverules plugin, if I click preferences after looking at a rule, I always get kicked out and have to login again... Is this a known problem?

BTJ
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

bjorntj

Btw, how stable is the svn version of RC, is it ok to use?

BTJ
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

JohnDoh

QuoteI am using the released version of RC, 0.3.1 so I guess that's the reason.... But when I use the released version of sieverules plugin, if I click preferences after looking at a rule, I always get kicked out and have to login again... Is this a known problem?

need a little more to go on than that, it could be a known bug - if you look in [rc root]/logs/errors is there anything about the session? if so then you need to make sure the tables in your database are set to UTF8

QuoteBtw, how stable is the svn version of RC, is it ok to use?

that depends what you are using it for in a full production environment its prolly not what you want but if its just for your use and you dont mind updating regularly then it would be ok. on a side note 0.4b will be realsed this week i think
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

bjorntj

Nothing in the error log about session, but my PostgreSQL tables are not using UTF-8, they are using ISO-8859-1, is that a problem?

BTJ
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

JohnDoh

i dont know about postgresql, i know in mysql it should be UTF8 its in sql scritps for RC. you could also try looking in rcube_sieve.php in the plugin folder and setting private $cache = true; to false near the top and see if that make any difference, if it doesnt than you are talking about a different, unknown bug.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

bjorntj

Setting private cache = false solved it... Thx... :)

BTJ
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

JohnDoh

Rando: I have added the basics for creating rules using the date extension and the currentdate operator to the repo version of the plugin. There is no date picker but there are input masks.

Based on the information in the RFC I think it is writing valid rules but I don't have access to a mail server which supports the date extension and so I can't be sure, you would be able to test it? (the current repo version requires 0.4-beta or svn-trunk version of RC)
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Schmatze

Hi, I want a rule for spam. This rule should be used by every user.

So I made a file /etc/deovecot/sieve/default with this code inside:

require ["fileinto"];
# Move spam to spam folder
if header :contains "X-Spam-Flag" ["YES"] {
  fileinto "Spam";
  stop;
}

But Roundcube doesn't recognise this file. I can't see it on the homepage. What is wrong?

dziobak

#207
try to use file names ending with *.sieve default.sieve
did you compile this file with 'sievec'?
Is this mistake on forum or in config files '/etc/deovecot/sieve/default'?

global sieve is used when theres no user sieve file.
if global sieve doesn't work you can try with 'sieve_before'
sieve_before = /etc/dovecot/sieve/default.sieve

this is a global reuleset and users won't see it

Schmatze

Thanks for your answer.

Now I think "example" would be the better choise for me. But this doen't work too.

I tried example.sieve and example.sievec (compiled version). Nothing works.

And deovecot was a mistake in the forum.

dziobak

in dovecot.conf you have:

sieve_global_path = /etc/dovecot/sieve/example.sieve
sieve_global_dir = /etc/dovecot/sieve

add this after
sieve_before = /etc/dovecot/sieve/example.sieve
now it should work