SpamAssassin 2.55, personal use (single user install) Mail::SpamAssassin Is there a way to use a directory path for the userprefs_filename or site_rules_filename instead of a single file, to have multiple .cf files loaded?
I am passing rules_filename a directory path for the main rules and that works, it finds all the rules files in that dir. (/home/username/sausr/share/spamassassin ) Passing userprefs_filename a single file works also. (/home/username/saetc/mail/spamassassin/local.cf ) {Really the local rules.} $SARulesDir = "$ENV{HOME}/sausr/share/spamassassin"; # Location of SA Rules # (/home/username/sausr/share/spamassassin ) $SAPrefs = "$ENV{HOME}/saetc/mail/spamassassin/local.cf"; # SA Per User Preferences # (/home/username/saetc/mail/spamassassin/local.cf ) my $SpamTest = new Mail::SpamAssassin ({ 'rules_filename' => $SARulesDir, 'userprefs_filename' => $SAPrefs }); I would like to pass userprefs_filename a directory path (/home/username/saetc/mail/spamassassin ) {for multiple .cf files} but that does not seem to work. I also tried to pass userprefs_filename a wildcard file (/home/username/saetc/mail/spamassassin/*.cf ) {for multiple .cf files} but that does not seem to work either. I also tried to pass site_rules_filename a directory path (/home/username/saetc/mail/spamassassin ) {for multiple .cf files} but that does not seem to work either. my $SpamTest = new Mail::SpamAssassin ({ 'rules_filename' => $SARulesDir, 'userprefs_filename' => $SAPrefs, 'site_rules_filename' => $SASiteRules }); If I run spamassassin directly instead of using Mail::SpamAssassin it seems to find the multiple .cf site rules fine. spamassassin -D rbl=-3 < ~/saetc/mail/spamassassin/sample-spam.txt debug: Score set 0 chosen. debug: running in taint mode? no debug: using "/home/username/sausr/share/spamassassin" for default rules dir debug: using "/home/username/saetc/mail/spamassassin" for site rules dir debug: using "/home/username/.spamassassin" for user state dir debug: using "/home/username/.spamassassin/user_prefs" for user prefs file ... (The debug output contained the rules from both files in the site rules dir.) Any ideas? ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk