Roundcube Community Forum

 

cPanel Filters Plugin

Started by cornfeed, December 06, 2011, 11:03:57 PM

Previous topic - Next topic

cornfeed

I have been working on a new plugin for the last week that will allow people to manage their cpanel filters from within the roundcube settings area.
I based everything off of managesieve and sieverules.
So far everything looks pretty good, and I have everything working except the save function.
From what I can tell, the plugin is not adding a gui_object properly.

In the Javascript, when I try to set the form field "_fid" to the value of the selected list item, rcmail.gui_objects turns up null.

Here is a link to the code

I would also be open to any suggested cleanups, but am first concerned with getting this save function to work properly.

Thanks in advance

SKaero

I haven't had time to test the code but you may want to try using jQuery to set the value of the field:
$('input[name=_fid]').val(value);

cornfeed

That did it, thanks.
Still curious why it can not find the object though....

cornfeed

#3
So I have almost everything completely working except the save function. I can save the filters, but I have no clue how to handle the page refresh.

Any ideas will be appreciated. I have moved the code in prep for adding to the Wiki. https://github.com/cornfeed/cpanel_filters
Thanks

SKaero

What do you want the page refresh do to?

cornfeed

Currently: When you hit save, it loads the settings page inside the frame used for my filterediting and then reloads the whole page.
What I Want: Save, Update the list on the left hand side, and then reload the same filter for further editing.

Right now the plugin is *functional* with jquery validation and a small bit of server side validation.

niculin

this project is still alive? it's a very good plugin!

maryus_soryn

The link doesn't work .

Can you copy the plugyn again please?

Thank you

paZ

the right link is https://github.com/cornfeed/cpanel_filters

By the way..with the new skin of Roundcube cpanel_filters is unusable :( (with the old skin works perfectly).
ALSO there is a bug that i found, when you deliver to a mail in a folder, the plugin add every time the INBOX. prefix also when the folder isn't in the INBOX. but is in the root.

(sorry for english)
best regards
paZ