Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th September 2009, 18:00
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 8th September 2009, 20:53
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 322
Thanks: 55
Thanked 89 Times in 54 Posts
Send a message via Skype™ to Horfic
Default

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.
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
  #3  
Old 9th September 2009, 10:44
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

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

Thanks
Michele
Reply With Quote
  #4  
Old 9th September 2009, 11:10
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 322
Thanks: 55
Thanked 89 Times in 54 Posts
Send a message via Skype™ to Horfic
Default

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.
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
  #5  
Old 9th September 2009, 11:33
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

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

Thanks again
Michele

Last edited by voltron81; 9th September 2009 at 11:49.
Reply With Quote
  #6  
Old 9th September 2009, 12:20
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 322
Thanks: 55
Thanked 89 Times in 54 Posts
Send a message via Skype™ to Horfic
Default

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.
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
  #7  
Old 9th September 2009, 13:20
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Ah ok.

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

If somebody want to help me...

Thanks
Reply With Quote
  #8  
Old 15th September 2009, 17:38
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
 
Default

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?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 16:54
How to install OpenOficeOrg 3.0.0 in Ubuntu 8.04 ernesthagger HOWTO-Related Questions 43 23rd December 2008 14:42
where are the error logs for ISPConfig? claudioimai Installation/Configuration 13 25th November 2008 11:21
Error after upgrade mbascombe Installation/Configuration 13 14th April 2008 00:48
Help. Apache don't start payne Server Operation 3 17th August 2007 15:57


All times are GMT +2. The time now is 05:38.


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