submersible_toaster has asked for the wisdom of the Perl Monks concerning the following question:
brothers and sisters in perl ,
I hope that I am not the first to encounter difficulty with
spam-assassin's sa-learn.
It seems while spamc and spamd have options for sql stored bayes_dbs or virtual user directories, sa-learn has a completly different syntax for specifying configuration and user_prefs locations. Having seen posts on the sa-talk mailing list regarding this collect zero responses, I decided to have a bash getting sa-learn to use virtual config directories in the manner of spamd.
After browsing the source for a minute, making this hack to CmdLearn.pm allowed me to use the option username and virtual-config-dir , combining them to pass user_dir to Mail::Spamassassin::new. With SA 2.53, Mail::SpamAssassin::CmdLearn
Has anyone else come across this while using spam assassin, no users have system accounts on the server I am configuring. More to the point, has anybody made this work already? thanks56,59d55 < 'virtual-config-dir|v=s' => \$opt{'virtual-co +nfig-dir'}, < 'username|u=s' => \$opt{'username'} +, < < 91d86 < user_dir => join ( '/' , $opt{'virtual-config-dir'} , $ +opt{'username'} ),
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mail::SpamAssassin::CmdLearn hacking
by waswas-fng (Curate) on Jun 26, 2003 at 03:39 UTC | |
by Anonymous Monk on Jun 26, 2003 at 07:47 UTC | |
by waswas-fng (Curate) on Jun 26, 2003 at 13:07 UTC |