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





------- Additional Comments From [EMAIL PROTECTED]  2004-07-07 11:04 -------
just poking through the code...

in spamd::handle_virtual_user_config_dir, $dir is set to the macro-expanded
virtual-config-dir setting.  the prefs file is force-set to $dir/user_prefs,
which is why prefs works as expected.  userdir (becomes user_dir and
userstate_dir in M::SA) is set to $dir.

in M::SA::get_and_create_userstate_dir():

  if (defined $self->{user_dir}) {
    $fname = File::Spec->catdir ($self->{user_dir}, ".spamassassin");
  } elsif (defined $self->{userstate_dir}) {
    $fname = $self->{userstate_dir};
  }

so that first part tacks on the .spamassassin, and there you are.  My guess is
that they should be reversed -- if userstate_dir is set it's a forced override
so use it; if it's not set but user_dir is, then derive userstate_dir from
user_dir; if neither are set, try one of the default userstate directory 
locations.



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

Reply via email to