SA Bugzilla – Bug 1780
bogus warning?
Last modified: 2003-06-12 07:39:10 UTC
When invoked as spamassassin -x, it generates a message on stderr: Failed to create default user preference file ... I'm not sure whether this is a bug or a feature, but it took me quite a while to track down why the setup as recommended in http://advosys.ca/papers/postfix-filtering.html was "broken". The problem is that sub create_default_prefs contains the code if ($self->{dont_copy_prefs}) { return(0); } and sub init says if (!-f $fname && !$self->create_default_prefs($fname)) { warn ... } I'm not sure whether the problem is bad advice from advosys or a bug in spamassassin.
the way the code is written, calling the function and having it not create the prefs is a failure. so the return code is right, but we shouldn't call the function if we shouldn't create the prefs.
ok, fix committed to 2.60. :) thanks.