Author Topic: SpamAssassin MySQL Plugin  (Read 100316 times)

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
SpamAssassin MySQL Plugin
« Reply #60 on: March 23, 2010, 04:03:43 PM »
this isnt really the best place for help setting up spamassassin or ispconfig, have you gone though this UsingSQL - Spamassassin Wiki if you're still stuck i suggest finding some spamassassin support or may be ispconfig. hope you get it working.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline snyder

  • Newbie
  • *
  • Posts: 2
sauserprefs_bayes_delete_query
« Reply #61 on: May 09, 2010, 07:33:25 AM »
Hello,

Does the deletion of user bayesian data work for anybody?
I am getting "server error" message every time I try to use this functionality.

It seems like the problem is with the following piece of code in purge_bayes() function:
if ($rcmail->config->get('sauserprefs_bayes_delete_query'true)) {
           
$this->api->output->command('display_message'$this->gettext('servererror'), 'error');
           return;
                }


($rcmail->config->get('sauserprefs_bayes_delete_query', true)) always returns TRUE and further lines of the function are never executed.

After commenting out the above part everything works as expected.
(However, I suppose, this code should rather be fixed than removed ;) )

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline snyder

  • Newbie
  • *
  • Posts: 2
SpamAssassin MySQL Plugin
« Reply #63 on: May 09, 2010, 07:58:53 AM »
great, thanks! :)
(I should have check GitHub first, sorry...)

Offline Crupuk

  • Newbie
  • *
  • Posts: 8
SpamAssassin MySQL Plugin
« Reply #64 on: May 14, 2010, 09:11:31 AM »
Quote from: Volnhar;26192
Wont the SpamAssassin part work anyway?

I don't have access from my server from work, but will have a look tonight.

If not then having this work with amavisd-new would be great. :)


Nothing about this ?

:-D

Offline Dane

  • Newbie
  • *
  • Posts: 1
a little issue
« Reply #65 on: August 15, 2010, 02:54:05 PM »
a little issue in sauserprefs.php

change this:

if (!isset($no_override['skip_rbl_checks'])) {
               if ($_POST['_spamskiprblchecks'] == "1")
                  $new_prefs['skip_rbl_checks'] = "";
               else
                  $new_prefs['skip_rbl_checks'] = "1";

for:

if (!isset($no_override['skip_rbl_checks'])) {
               if ($_POST['_spamskiprblchecks'] == "1")
                  $new_prefs['skip_rbl_checks'] = "0";
               else
                  $new_prefs['skip_rbl_checks'] = "1";

regards

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
SpamAssassin MySQL Plugin
« Reply #66 on: August 16, 2010, 03:27:23 AM »
thanks, this has been fixed in the repo version.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline dvdsmith

  • Newbie
  • *
  • Posts: 7
SpamAssassin MySQL Plugin
« Reply #67 on: August 25, 2010, 05:19:38 PM »
Quote from: fritz001;26219
CREATE TABLE userpref (
  username varchar(100) NOT NULL default '',
  preference varchar(50) NOT NULL default '',
  value varchar(100) NOT NULL default '',
  prefid int(11) NOT NULL auto_increment,
  PRIMARY KEY  (prefid),
  KEY username (username)
);


I'm pretty new mysql, so forgive me if I missed the obvious.  

So far as I can tell this was the only mention I could find specifying the details of the field required for this plugin.  The readme only tells you to create the table and fields, not field length or anything else.  I would suggest the above should be in the readme or at least the essential details.

Dave

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
SpamAssassin MySQL Plugin
« Reply #68 on: August 26, 2010, 03:29:44 AM »
TBH I kind of assumed that any one who used the plugin would already have their SA setup. There are lots of guides out there for how to it with different databases, including the SA documentation itself.

But I understand what you are saying about it being hard to know where to start, may be I will add a link to the SA documentation in the readme.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline LMSSML

  • Jr. Member
  • **
  • Posts: 49
Changed Page
« Reply #69 on: September 01, 2010, 07:59:22 AM »
Hi there,

When I installed the plugin

When i used on roundcube what happends it's the following it looses the separator and opens a total page of spam filter making roundcube icon above some options.

Is it possible to open has settings and the left options opende and see the tabs above ?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
SpamAssassin MySQL Plugin
« Reply #70 on: September 01, 2010, 11:22:53 AM »
are you using the default skin and correct version of the plugin for your version of rc?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline LMSSML

  • Jr. Member
  • **
  • Posts: 49
SpamAssassin MySQL Plugin
« Reply #71 on: September 01, 2010, 12:23:23 PM »
Hi there,

I'.m using rc 0.4

and the version of spam is sauserprefs.

Version of spamassasin 3.2.3

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
SpamAssassin MySQL Plugin
« Reply #72 on: September 01, 2010, 04:11:51 PM »
hmm sauserprefs version 1.4 right? its at the top of [rc root]/plugins/sauserprefs/sauserprefs.php. and its the default RC skin not running inside iframes or anthing like that right? it should look like this http://www.tehinterweb.co.uk/roundcube/plugins/sauserprefs.jpg
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline LMSSML

  • Jr. Member
  • **
  • Posts: 49
No it goes strange
« Reply #73 on: September 04, 2010, 07:07:50 AM »
Hi John


Thanks for the awnser:


but it goes a little different from what you have posted.

What you have posted that's the way I like to be but it goes like my jpeg.

What I did do wrong ?


Any help ?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
SpamAssassin MySQL Plugin
« Reply #74 on: September 04, 2010, 07:41:55 AM »
What browser is that happening in and have you tried clearing your browser cache?