On Tue, Sep 21, 2004 at 05:53:21PM -0500, Gabriel Millerd wrote: > > > > > > are you using the $f->learn method primarily for this? minus any prep > > > work like header removal and reporting. > > > > Yeah, here is a piece from my spam-learn script: > > *WARNING* This is against the 3.0 API > > > i follow you completely, however how are you connecting to the > mysql storage 'factory'? i have pretty much the same code you have. > however i am assuming that the $spamtest was constructed not via > Mail::SpamAsssassin->new() but rather by a different method. >
With a properly configured SA install it should just work: my $spamass = Mail::SpamAssassin->new( { 'debug' => $debug } ); $spamass->init(1); You can pass in an optional username, for instance: my $spamass = Mail::SpamAssassin->new( { 'debug' => $debug, 'username' => '[EMAIL PROTECTED]' } ); $spamass->init(1); Now, I've never done that with userprefs in SQL, mileage may vary. Guess I should research that a little before ApacheCon.... Michael