Roundcube Community Forum

 

Sieverules (managesieve) plugin

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

Previous topic - Next topic

JohnDoh

QuoteSo, if both default rule exist (global.sieve) and user defined rules, default rule is not load and not applied.

Thats right, sounds like you are talking about global seive rules, not default ones. Take a look here LDA/Sieve/Dovecot - Dovecot Wiki at the sieve_before/after options
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

fritz001

Quote from: fritz001;32674Hello JohnDoh

Finally I've managed to find howto enable folder autocreation if not exists::

require ["fileinto","mailbox"];

# rule:[important]
if anyof (header :contains "From" "postmaster")
{
   fileinto :create "INBOX.admin";
}



Thanks, second problem solved, now about folder autocreation, in order to make this possible I have to enable advance editor and to add by hand require ["fileinto","mailbox"]; and file :create "mailbox_name".

So can you add this as a future feature to sieverules plugin ?

JohnDoh

At the moment you can only select from folders which already exist so there is no need for the create option. In the future if the possibility to add what ever folder you want is added I will add a create option.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Pausen

Hi i have a problem with the apereance of the plugins
it looks like the css have an error.
i use roundcube .5 and the lastest siverules plugin

someone know a fix for this

JohnDoh

have you cleared your browser cache and double checked that all the skin files for the plugin are up to date?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Pausen

i tried it with diffrent browsers (firefox,ie) und clear cache jeah but same
an i think the files are all uptodate

installed folders




 ls -latr skins
drwxr-xr-x 2 root root 4096  8. Jun 2010  templates
-rw-r--r-- 1 root root  747  8. Jun 2010  rename.png
-rw-r--r-- 1 root root  537  8. Jun 2010  enable.png
-rw-r--r-- 1 root root  568  8. Jun 2010  enablePas.png
drwxr-xr-x 3 root root 4096  8. Jun 2010  ..
-rw-r--r-- 1 root root  279  9. Okt 12:53 up_arrow.png
-rw-r--r-- 1 root root  285  9. Okt 12:53 down_arrow.png
-rw-r--r-- 1 root root  775  9. Okt 12:53 delete.png
-rw-r--r-- 1 root root  752  9. Okt 12:53 deletePas.png
-rw-r--r-- 1 root root  733  9. Okt 12:53 add.png
-rw-r--r-- 1 root root 5123 30. Jan 11:19 sieverules.css
-rwxr--r-- 1 root root  114 30. Jan 11:19 safari.css
-rwxr--r-- 1 root root 1577 30. Jan 11:19 iehacks.css
-rwxr--r-- 1 root root  193 30. Jan 11:19 ie6hacks.css
-rwxr--r-- 1 root root 2361 30. Jan 11:19 icons.png
-rwxr--r-- 1 root root 1584 30. Jan 11:19 icons.gif
-rw-r--r-- 1 root root 1024 30. Jan 11:19 help.gif
drwxr-xr-x 3 root root 4096 30. Jan 11:19 .




 ls -latr templates/
insgesamt 28
drwxr-xr-x 2 root root 4096  8. Jun 2010  .
-rw-r--r-- 1 root root 5042 30. Jan 11:19 sieverules.html
-rw-r--r-- 1 root root  814 30. Jan 11:19 setupsieverules.html
-rw-r--r-- 1 root root 1520 30. Jan 11:19 editsieverule.html
-rw-r--r-- 1 root root 2707 30. Jan 11:19 advancededitor.html
drwxr-xr-x 3 root root 4096 30. Jan 11:19 ..




folder from the zipfile.

drwxr-xr-x 3 root root 4096 30. Mai 2009  ..
drwxr-xr-x 2 root root 4096  9. Okt 13:28 templates
-rwxr--r-- 1 root root 2361  9. Okt 13:33 icons.png
-rwxr--r-- 1 root root 1584  9. Okt 13:33 icons.gif
-rwxr--r-- 1 root root 1024  9. Okt 13:33 help.gif
-rwxr--r-- 1 root root 5123 12. Jan 22:16 sieverules.css
-rwxr--r-- 1 root root  114 12. Jan 22:16 safari.css
-rwxr--r-- 1 root root 1577 12. Jan 22:16 iehacks.css
-rwxr--r-- 1 root root  193 12. Jan 22:16 ie6hacks.css
drwxr-xr-x 3 root root 4096 12. Jan 22:16 .


JohnDoh

Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Pausen

#292
Quote from: JohnDoh;32842you are definatly running rc 0.5 right?

yes im sure
Quote from: JohnDoh;32842try checking these 2 files are the same as the ones you have
https://github.com/JohnDoh/Roundcube-Plugin-SieveRules-Managesieve/blob/master/skins/default/templates/sieverules.html
https://github.com/JohnDoh/Roundcube-Plugin-SieveRules-Managesieve/blob/master/skins/default/sieverules.css

i copied the two files now
but the same error
do i have to move these into the roundcube skins folder ?

JohnDoh

#293
Quotedo i have to move these into the roundcube skins folder?

nope, they go in the sieverules skin folder, the path for each file is printed just above the code on those links i posted before.

I just downloaded a frech copy of rc 0.5 and the 0.5 version of sieverules and I have no problem with the skin. I dont know what you've done but I would guess somewhere you have forgotten to update either some of the sieverules files or the rc ones (was it a fresh install or an upgrade?). only the default skin of rc is supported.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Pausen

#294
it was an update from roundcube 0.4.2

hmm maybe i have to do a clean install ... this would be very annoying

###
Update
i did now a new clean installation
this fixed now the error.

very weird

JohnDoh

gald you got it all sorted.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

atno

Hi,

I've installed the plugins but i don't see the Filters tab on settings. I don't get any errors on log files. Can someone guide me to fix this?

JohnDoh

Hi,

Please give a little more information about your setup.... things like:

What version of RC are you running?
What version if sieverules have you installed?
Did you actually enable it in your config or just dump the dir in?
Are there any JS errors on the page when you goto the settings section?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

hailang

I just wanted to comment & say keep up the quality work. I've bookmarked your froums just now and I'll be back to read more in the future my friend! Also well-chosen colors on the theme it goes well with the blog in my modest opinion
(yhm20110416)

cbrace

Hi all,

I have the lastest sieverules (Apr 21) installed under roundcube v0.5.2 and dovecot v2.0.11. As far as I can tell it works fine, except for one particular filter statement, and I am wondering whether I am encountering an internal limitation.

In Thunderbird, I had a large filter set up to move all "bulk" mail (not junk, just non-personal mail) to a separate folder named Bulk.

Rather than retype everything, I copied the relevant Thunderbird entries in an editor, formatted them accordingly, and recreated the filter statement by hand in the sieve file.

The roundcube plugin can open and display this sieve statement, but if any changes are made to it and I try to save it, an error message is displayed:
The action you requested is not supported by the server

In the roundcube error log, I see this:
{115}roundcube: line 59: error: expecting ',' or end of test list ')', but found ':'. roundcube: error: parse failed. (3):

As far as I can tell, there is no syntax error in the this particular statement.

This statement is (the bit between the parentheses) 166 lines, 9532 bytes. Is this exceeding some limit? FWIW, here is it (contains no private info): pastebin - sieve filter statement - post number 2053021

Thanks.