At 04:48 PM 5/6/2002, Kevin Hemenway wrote:
 > >Ok, awesome. What about the /usr/bin/spamassasin? I saw that there was a
 > >"dont_copy_prefs" option in Mail::SpamAssassin, but it doesn't look like I
 > >can set that via a command line or config file anywhere. I'd rather not
 > >modify the SpamAssassin.pm file to set this to 1, instead of 0, but if
 > >that's the only way, then I'll do it.
 >
 >Here's a patch that will do the job:

...snip (and some more below)...

 >However, this does cause complaints. If I ran it like this:
 >Then, I'll get a complaint each and every mail message:
 >
 >  Failed to create default prefs file
 >  /path/to/user/.spamassassin/user_prefs:
 >  No such file or directory
 >
 >This seems to come about as part of the init() portion 
of >Mail::SpamAssassin: In this case, create_default_prefs ALWAYS returns
 >a 0, which ALWAYS causes this error message to display.

I've unsubscribed my [EMAIL PROTECTED], and jumped back on as 
[EMAIL PROTECTED] I've taken a personal interest (Oooh!) in SpamAssassin 
now, so I'll be responding from my personal account from now on. I ran 
SpamAssassin all last night, and when I woke in the morning, didn't see a 
single piece of spam. Nor were there any fositives. That's about 30 spam 
gone from about 500-600 messages. I like it, I like it ;) ...

Anyways, to complete the patch above, and to solve the error message that 
appears again and again (when running /usr/bin/spamassassin), the 
"create_default_prefs" subroutine should have something like:

   if (!$self->{dont_copy_prefs} && !-f $fname) {

     ... all the normal code ...
   }

   ### here's the new line of code ###
   elsif ($self->{dont_copy_prefs} { return 1; }

Thoughts on this patch? Is this the correct place to send this stuff to?


-- 
Morbus Iff ( i'm the droid you're looking for )
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
Tech: http://www.oreillynet.com/pub/au/779 - articles and weblog
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to