http://bugzilla.spamassassin.org/show_bug.cgi?id=4051
Summary: Troubles with vpopmail alias implementation.
Product: Spamassassin
Version: 3.0.2
Platform: All
OS/Version: All
Status: NEW
Severity: trivial
Priority: P2
Component: spamc/spamd
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
I noticed, that spamassasin-3.0.2 doesn't make proper check for existing
directory, returned by vuserinfo command.
Attached patch, could fix that.
--- spamd Thu Dec 23 17:28:32 2004
+++ spamd Fri Dec 24 13:43:10 2004
@@ -1407,11 +1407,16 @@
$dir = `$dir/bin/vuserinfo -d $username`;
chomp($dir);
}
- my $cf_file = $dir . "/.spamassassin/user_prefs";
+ #
+ # If there is no such user, read default prefs
+ #
+ my $cf_file = undef;
+ $cf_file = $dir . "/.spamassassin/user_prefs" if -d $dir;
#
# If vpopmail config enabled then pass virtual homedir onto
create_default_cf_needed
#
+ if ( defined $cf_file ) {
if ( $opt{'vpopmail'} ) {
if ( !$opt{'username'} ) {
warn "cannot use vpopmail without -u\n";
@@ -1435,6 +1440,7 @@
user_dir => $dir
}
);
+ }
}
return 1;
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.