Roundcube Community Forum

 

Sieverules (managesieve) plugin

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

Previous topic - Next topic

JohnDoh

what version of RC are you using? development version of the plugin requires svn trunk verion of rc.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

vimalkumar

#181
Hello sir,
    I'm using Exim 4.x server and the managesieve is not working for me. I would like to implement Filters. Please help me regarding this. I installed roundcube 0.3.1

jdrachenfels

Quote from: JohnDoh;26662what version of RC are you using? development version of the plugin requires svn trunk verion of rc.

Hi,

done - and the error is gone! But now I have another problem:

After adding a new filter the list on the left hand sidebar is not updated until we reload the entire page!

After deleting of one filter the entire page is shown cascaded in the right hand frame.

Please see the pictures from mstar some days ago in this thread regarding this problem. We are testing with ie7, ie8 and firefox.

Thanks for fast help - if you can make it happen we would like to donate... how?!

Cheers,

Johannes :-)

jdrachenfels

Hi,

we did some more testings and found the following:

When testing with Firefox - everything is perfect!

When testing with browser IE7 (document standards...) we get the problem
   

Meldung: 'null' ist Null oder kein Objekt
Zeile: 679
Zeichen: 4
Code: 0
URI: http://xx.xx.xx.xx/webmail/plugins/sieverules/sieverules.js?s=1270656105



When testing with browser IE8 - everything is perfect!

Thanks for fast help!

Johannes

Quote from: jdrachenfels;26683Hi,

done - and the error is gone! But now I have another problem:

After adding a new filter the list on the left hand sidebar is not updated until we reload the entire page!

After deleting of one filter the entire page is shown cascaded in the right hand frame.

Please see the pictures from mstar some days ago in this thread regarding this problem. We are testing with ie7, ie8 and firefox.

Thanks for fast help - if you can make it happen we would like to donate... how?!

Cheers,

Johannes :-)

jdrachenfels

Hi John Doh,

thanks for solving our issue so fast! Please let me know howto donate :-)

But we found another issue. When you do the following you will reproduce errors:

1.) Klick on "New Filter"
2.) Klick on any "MoveUp" or "MoveDown" link in the left hand list of filters
3.) See the java script erros:

Details zum Fehler auf der Webseite

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Zeitstempel: Fri, 9 Apr 2010 08:48:39 UTC


Meldung: 'this.rows[...].obj' ist Null oder kein Objekt
Zeile: 640
Zeichen: 5
Code: 0
URI: http://johannes.intern.drachenfels.de/webmail/program/js/list.js?s=1270708941


Meldung: 'this.rows[...].obj' ist Null oder kein Objekt
Zeile: 640
Zeichen: 5
Code: 0
URI: http://johannes.intern.drachenfels.de/webmail/program/js/list.js?s=1270708941


Meldung: 'this.rows[...].obj' ist Null oder kein Objekt
Zeile: 640
Zeichen: 5
Code: 0
URI: http://johannes.intern.drachenfels.de/webmail/program/js/list.js?s=1270708941



Hope this helps!

Thanks again,

Johannes

JohnDoh

#185
yea, i know its not quite fixed yet, hopefully i will have some time to sort it over the weekend. thanks for the errors though, i will make sure to fix that too.

EDIT: All the JS problems should be fixed in the repo now
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Rando

Hi John Doh,
do you plan to implement the currentdate filter type into sieverules (with a datepicker) ?
for vacation filters, for example :
require ["date", "relational", "vacation"];
if allof (currentdate :value "ge" "date" "2010-04-18",
 currentdate :value "le" "date" "2010-04-22")
{
vacation
:days 7
:addresses ["[email protected]"]
:subject "Out of office"
"vacation message";
}


Cheers,
R.

JohnDoh

I'll put the date extension on the todo list!
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Rando


kir

I have some bugs to report.

1) When specifying a regex for a rule, if the regex includes a " character, it's not saved correctly and log shows:
PHP Warning:  htmlspecialchars() expects parameter 1 to be string, array given in xxxx/plugins/sieverules/sieverules.php on line 1202
I am trying to filter messages with exe attachments, using a regex like this: filename=".*?\.exe" Is this the best way to filter for attachments?

2) In the vacation settings, when a charset is chosen other than UTF-8, umlauts in the vacation message do not display correctly.

JohnDoh

Quote from: kir;26832I have some bugs to report.

1) When specifying a regex for a rule, if the regex includes a " character, it's not saved correctly and log shows:
PHP Warning:  htmlspecialchars() expects parameter 1 to be string, array given in xxxx/plugins/sieverules/sieverules.php on line 1202

fixed in the repo

Quote from: kir;26832I am trying to filter messages with exe attachments, using a regex like this: filename=.*?\.exe" Is this the best way to filter for attachments?

I'm not sure, a little searching suggests your server needs to support the body or x_body extension and then you can use a regex to find the name and filter on it. Re: filter attachments with sieve - msg#00012 - ietf.mta-filters

[QUOTE="kir;26832]2) In the vacation settings, when a charset is chosen other than UTF-8, umlauts in the vacation message do not display correctly.[/QUOTE]

The charset is an advanced option for users who want to use a different one from normal, UTF-8, if a differen't one doesnt work then dont change it. This is something handeled by the server, my plugin just rights the files it has no affect on what the server does with them.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

bjorntj

#191
I am trying to use this sieve plugin but can't seem to make it work... I have been using Horde and Ingo sieve module before and want to import my Ingo sieve rules... But when I go to the filter tab, I don't get asked if I want to import my old rules, as it looks like I should be...

What am I missing?


Edit: I updated to the latest version in Git and now it runs better... But a lot of rules are missing from the gui... But what's strange, is that when I see in the roundcube.sieve file, all my rules seems to be there but they are just not all displayed on the gui?
Also, nothing happens when I click on a rule in the gui, except for that the whole roundcube webapp seems to lock up....


Regards,

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

QuoteEdit: I updated to the latest version in Git and now it runs better... But a lot of rules are missing from the gui... But what's strange, is that when I see in the roundcube.sieve file, all my rules seems to be there but they are just not all displayed on the gui?
Also, nothing happens when I click on a rule in the gui, except for that the whole roundcube webapp seems to lock up....

could you post your rule file?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

bjorntj

Which one, the ingo one or the new roundcube one?


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

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