http://bugzilla.spamassassin.org/show_bug.cgi?id=3589

           Summary: RFE: Default Bayes and AWL DBM with user config in SQL
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: spamc/spamd
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


We recently moved to SQL-based user config, but had no need nor desire to
migrate our Bayes and AWL databases into SQL.  However, spamd does not make this
an option.  I'd like to request the ability to mix and match the two.  

Duncan Hill posted an extremely simple patch (see below) that makes this work on
the users mailing list: to use it, you need to have entries for "bayes_path" and
"auto_whitelist_path" in your SQL-based user config that point to the locations
of those databases in the file system.  This is workable, however, it might be
even nicer to simply be able to mix and match the -q and virtual_config_dir
spamd parameters.

Here is Duncan's solution, summarized (read thread at
http://marc.theaimsgroup.com/?t=108097750100001&r=1&w=2):

SQL config table:
| [EMAIL PROTECTED] | bayes_path          | /path/to/dhill/.spamassassin |
| [EMAIL PROTECTED] | auto_whitelist_path | /path/to/dhill/.awl          |

And the very simple patch to Conf.pm (out of my 3.0cvs installation):
--- Conf.pm.orig        Sun Jul 11 02:46:58 2004
+++ Conf.pm     Sun Jul 11 02:47:49 2004
@@ -3132,7 +3132,7 @@
 
 sub parse_scores_only {
   my ($self) = @_;
-  $_[0]->{parser}->parse ($_[1], 1);
+  $_[0]->{parser}->parse ($_[1], 0);
 }
 
 sub parse_rules {



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to