[spambayes-bugs] [ spambayes-Bugs-795145 ] pop3proxy review page dies with mixed gzip/non messages

SourceForge.net noreply at sourceforge.net
Tue Sep 16 00:43:28 EDT 2003


Bugs item #795145, was opened at 2003-08-26 18:26
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=795145&group_id=61702

Category: pop3proxy
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Tony Meyer (anadelonbrin)
Assigned to: Tony Meyer (anadelonbrin)
Summary: pop3proxy review page dies with mixed gzip/non messages

Initial Comment:
If the Advanced Options are set to store the message 

cache gzipped, then having un-gzipped messages in the 

cache kills the review page (traceback below).



This happens if you have outstanding messages cached 

and not trained, and you go into the Advanced 

Configuration, and enable gzip compression of the cache.



Basically, if the option is set, the Review Messages page 

assumes the cache is only gzipped messages, and then 

dies trying to display the first non-gzipped message.



Looks like the best fix for this is for the Review 

Messages page to check whether each message is 

compressed before attempting to process it, rather than 

assuming that if the option is set True, then all

messages are compressed, or if the option is set to 

False, that no messages are compressed.  (In other 

words, the option should only control saving, not 

loading).



500 Server error

Traceback (most recent call last):



   File "C:\spambayes-1.0a4\spambayes\Dibbler.py", line 

398, in 

found_terminator

     getattr(plugin, name)(**params)



   File "C:\spambayes-1.0a4\spambayes\ProxyUI.py", line 

392, in onReview

     message = spambayes.mboxutils.get_message

(cachedMessage.getSubstance())



   File "C:\spambayes-1.0a4\spambayes\Corpus.py", line 

349, in getSubstance

     return self.hdrtxt + self.payload



   File "C:\spambayes-1.0a4\spambayes\Corpus.py", line 

292, in __getattr__

     self.load()



   File "C:\spambayes-1.0a4\spambayes\FileCorpus.py", 

line 316, in load

     self.setSubstance(fp.read())



   File "C:\Python23\lib\gzip.py", line 217, in read

     self._read(readsize)



   File "C:\Python23\lib\gzip.py", line 260, in _read

     self._read_gzip_header()



   File "C:\Python23\lib\gzip.py", line 161, in 

_read_gzip_header

     raise IOError, 'Not a gzipped file'



IOError: Not a gzipped file

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

>Comment By: Tony Meyer (anadelonbrin)
Date: 2003-09-16 16:43

Message:
Logged In: YES 
user_id=552329

Fixed in cvs.

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

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



More information about the Spambayes-bugs mailing list