[spambayes-bugs] [ spambayes-Patches-1803128 ] Protection for dnscache corruption

SourceForge.net noreply at sourceforge.net
Mon Oct 22 04:35:46 CEST 2007


Patches item #1803128, was opened at 2007-09-26 18:43
Message generated for change (Comment added) made by montanaro
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=1803128&group_id=61702

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David Abrahams (david_abrahams)
Assigned to: Nobody/Anonymous (nobody)
Summary: Protection for dnscache corruption

Initial Comment:
My spam filtering regularly starts failing because the dnscache is corrupted.  I don't have any idea how it gets that way, but a broken cache should never scuttle the process, so I propose the enclosed patch.

procmail: Executing "sb_filter.py"
Traceback (most recent call last):
  File "/usr/local/bin/sb_filter.py", line 83, in ?
    from spambayes import hammie, Options, mboxutils, storage
  File "/usr/local/lib/python2.4/site-packages/spambayes/hammie.py", line 7, in ?
    from spambayes.tokenizer import tokenize
  File "/usr/local/lib/python2.4/site-packages/spambayes/tokenizer.py", line 44, in ?
    cache = dnscache.cache(cachefile=options["Tokenizer", "lookup_ip_cache"])
  File "/usr/local/lib/python2.4/site-packages/spambayes/dnscache.py", line 98, in __init__
    self.caches = pickle.load(open(self.cachefile, "rb"))
cPickle.UnpicklingError: invalid load key, '
'.
procmail: Program failure (1) of "sb_filter.py"


----------------------------------------------------------------------

>Comment By: Skip Montanaro (montanaro)
Date: 2007-10-21 21:35

Message:
Logged In: YES 
user_id=44345
Originator: NO

I'm trying to figure out what the patch to hammie.py has to do with
protecting against a corrupt
dnscache.  Was perhaps the wrong patch attached to this ticket?



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=1803128&group_id=61702


More information about the Spambayes-bugs mailing list