[Spambayes] encountered error while processing spam folder

Dave Harrison dave at nullcube.com
Thu Mar 6 08:06:12 EST 2003

Hey, Ive been using spambayes for a few days and at first it worked fine.  But recently I have been getting the following error when I try to train it on my spam folder.

Im assuming it might have to do with an email with a mangled header.  But Im having trouble tracking down which exact email it is.  Is there a way I can track down the offending email to forward onto the devel team to help assess this error ?


Training spam (/home/dave/.mail/spam):
  Reading as Unix mbox
Traceback (most recent call last):
  File "/home/dave/spambayes-1.0a2/mboxtrain.py", line 278, in ?
  File "/home/dave/spambayes-1.0a2/mboxtrain.py", line 270, in main
    train(h, s, True, force)
  File "/home/dave/spambayes-1.0a2/mboxtrain.py", line 203, in train
    mbox_train(h, path, is_spam, force)
  File "/home/dave/spambayes-1.0a2/mboxtrain.py", line 139, in mbox_train
    if msg_train(h, msg, is_spam, force):
  File "/home/dave/spambayes-1.0a2/mboxtrain.py", line 71, in msg_train
    h.train(msg, is_spam)
  File "/home/dave/spambayes-1.0a2/hammie.py", line 150, in train
  File "./spambayes/classifier.py", line 270, in learn
  File "./spambayes/classifier.py", line 391, in _add_msg
  File "./spambayes/compatsets.py", line 374, in __init__
  File "./spambayes/compatsets.py", line 333, in _update
  File "./spambayes/tokenizer.py", line 1052, in tokenize
  File "./spambayes/tokenizer.py", line 1106, in tokenize_headers
  File "/usr/local/lib/python2.2/email/Header.py", line 92, in decode_header
    dec = email.base64MIME.decode(encoded)
  File "/usr/local/lib/python2.2/email/base64MIME.py", line 179, in decode
    dec = a2b_base64(s)
binascii.Error: Incorrect padding

More information about the Spambayes mailing list