SA Bugzilla – Bug 2641
Spamd doesn't open user_prefs file in virtual-config-dir
Last modified: 2004-04-28 09:39:58 UTC
Spamd attempts to locate the user_prefs file in the wrong directory when --virtual-config-dir is specified. It looks in <virtualdir>/user_prefs rather than <virtualdir>/.spamassassin/user_prefs. Diff -p : *** spamd.orig Wed Oct 29 10:41:41 2003 --- spamd Wed Oct 29 10:41:56 2003 *************** sub handle_virtual_user *** 984,990 **** $dir =~ s/\%d/${domain}/g; $userdir = $dir; ! $prefsfile = $dir.'/user_prefs'; # Log that the default configuration is being used for a user. logmsg("Using default config for $username: $prefsfile"); --- 984,990 ---- $dir =~ s/\%d/${domain}/g; $userdir = $dir; ! $prefsfile = $dir.'/.spamassassin/user_prefs'; # Log that the default configuration is being used for a user. logmsg("Using default config for $username: $prefsfile");
thanks -- applied that
*** Bug 3066 has been marked as a duplicate of this bug. ***
actually, reverted it again. I realised both of us were wrong on this! Read the spamd doco -- that's not how virtual-config-dir works; it does *not* use the .spamassassin subdir (because it doesn't have to).