HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   How to add a "spam-setting level" to the "Personal setting" Roundcube page (http://www.howtoforge.com/forums/showthread.php?t=38955)

voltron81 8th September 2009 18:00

How to add a "spam-setting level" to the "Personal setting" Roundcube page
 
Hello to everybody.
I'm realizing a mail server based on ISPConfig 3 and Roundcube as webmail.

I would like to add a service to the customer roundcube webpage, so that a customer can set-up the level of spam filtering for his email(basically I want to add a slider with 10 spam levels on the "personal setting" roundcube page).

I've checked that, on ISPConfig 3, I can create "Policy record" that are stored on mysql database, exatly in "spamfilter_user" table, in the field names "policy_id", where the value of "policy_id" is the order of "Policy record" in ISPConfig page.

So, how can add on Roundcube this slider?
I don't think it's really difficult...but I'm not an expert of PHP at all!!!
:)

Thanks
Michele

Horfic 8th September 2009 20:53

http://trac.roundcube.net/wiki/Plugin_Repository
Look at the repository, you wont find something exactly for ispconfig, but you should be able to edit it to your needs.

voltron81 9th September 2009 10:44

Hi,
do you mean "SpamAssassin User Prefs (SQL)"???
I hope I'll be able to personalize it...
Suggestions?

Thanks
Michele

Horfic 9th September 2009 11:10

Yes, for example. There should be the feature included in the plugin, just extract the thing you want and write your own plugin. To actually change the priority, use the remote api from ispconfig 3.

voltron81 9th September 2009 11:33

Quote:

To actually change the priority, use the remote api from ispconfig 3.
Thanks for your answer.
What do you mean?

Thanks again
Michele

Horfic 9th September 2009 12:20

With the new version of ISPConfig 3 released, it offers now the remote api to change any settings in ispconfig 3. For further detail look at the examples in the remote_client folder.

voltron81 9th September 2009 13:20

Ah ok.

I'll upgrade ISPConfig to the new version and I'll have a look of that.

If somebody want to help me... :D

Thanks

voltron81 15th September 2009 17:38

Hi.
Somebody can show me the right way please?
I'm completely lost with ISPConfig api.
I've found in which part of the database ISPConfig write the spam policy.
I've integrated Roundcube with a slider with 11 steps.

The only think that I've to do, and I've no idea of how to do it, is connect roundcube with dbispconfig, make a "SELECT * FROM spamfilter_users WHERE EMAIL = mail@mail.com" and then write the value of the policy in the column "policy_id".
I've already created 11 spam policy with ISPConfig and I know the policy_id of all of them.

Suggestions?


All times are GMT +2. The time now is 18:19.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.