[Spambayes] Large Message Causing Crash

Michael C. Neel neel at mediapulse.com
Fri May 14 12:59:03 EDT 2004


Here is the traceback.  The message had an 8MB attachment, so it's
pretty big for an email.  Deleting the large email and running again sb
picked up an additional 18 spam emails, which it didn't get to the first
time.

Mike


[neel at mike mep]$ sb_imapfilter.py -c -t -v -e y
SpamBayes IMAP Filter Version 0.4 (May 2004)
and engine SpamBayes Engine Version 0.3 (January 2004).
                                                                                                                              
Loading state from /home/neel/sb/mep/hammie.db database
/home/neel/sb/mep/hammie.db is an existing database, with 386 spam and
145 ham
Loading database /home/neel/sb/mep/hammie.db... Done.
Training
   Training ham folder SPAM: Train As Good
       0 trained.
   Training spam folder SPAM: Train As Bad
       0 trained.
Training took 0.0147 seconds, 0 messages were trained
Classifying
............***.Traceback (most recent call last):
  File "/usr/bin/sb_imapfilter.py", line 928, in ?
    run()
  File "/usr/bin/sb_imapfilter.py", line 918, in run
    imap_filter.Filter()
  File "/usr/bin/sb_imapfilter.py", line 789, in Filter
    self.unsure_folder)
  File "/usr/bin/sb_imapfilter.py", line 703, in Filter
    for msg in self:
  File "/usr/bin/sb_imapfilter.py", line 594, in __iter__
    yield self[key]
  File "/usr/bin/sb_imapfilter.py", line 642, in __getitem__
    msg.get_substance()
  File "/usr/bin/sb_imapfilter.py", line 384, in get_substance
    response = imap.uid("FETCH", self.uid, self.rfc822_command)
  File "/usr/lib/python2.3/imaplib.py", line 697, in uid
    typ, dat = self._simple_command(name, command, *args)
  File "/usr/lib/python2.3/imaplib.py", line 1000, in _simple_command
    return self._command_complete(name, self._command(name, *args))
  File "/usr/lib/python2.3/imaplib.py", line 830, in _command_complete
    typ, data = self._get_tagged_response(tag)
  File "/usr/lib/python2.3/imaplib.py", line 931, in
_get_tagged_response
    self._get_response()
  File "/usr/lib/python2.3/imaplib.py", line 893, in _get_response
    data = self.read(size)
  File "/usr/lib/python2.3/imaplib.py", line 231, in read
    return self.file.read(size)
  File "/usr/lib/python2.3/socket.py", line 311, in read
    return "".join(buffers)
MemoryError
[neel at mike mep]$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/spambayes/attachments/20040514/57e2582d/attachment.html


More information about the Spambayes mailing list