[spambayes-dev] [ spambayes-Bugs-689298 ] email.Errors.HeaderParseError: Not a header, not a

SourceForge.net noreply at sourceforge.net
Tue Jul 1 17:35:35 EDT 2003


Bugs item #689298, was opened at 2003-02-20 01:43
Message generated for change (Comment added) made by mhammond
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=689298&group_id=61702

Category: Outlook
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jacques Benoit (jbenoit)
Assigned to: Mark Hammond (mhammond)
Summary: email.Errors.HeaderParseError: Not a header, not a

Initial Comment:
Using Spambayes 1.0a1 and Outlook Plug-in
Using Python 2.2.2

Some email messages are not processed correctly. 
The Outlook buttons "Delete as Spam" and "Recover 
from Spam" have no effect. 

A Pythonwin trace follows.
An email message is provided.

=====
Deleting and spam training message 'Lose 22.5lbs 
in 3 weeks for FREE! ' -  FAILED to create 
email.message from:  'Received: from 
maili41.mxdat.org (ms5.mxdat.com 
[209.236.58.41]) by cybqc07.cybectec.com with 
SMTP (Microsoft Exchange Internet Mail Service 
Version 5.5.2653.13)\r\n\tid 1B84HXQH; Wed, 19 
Feb 2003 07:13:59 -0500\r\nTo: 
jbenoit at cybectec.com\r\nDate: Wed, 19 Feb 2003 
07:19:15 -0500\r\nMessage-ID: 
<1045657155.5456 at green5>\r\nX-Mailer: 
Pine.GSO.4.31\r\nFrom: "Get Serious" 
<aususua at mxdat.com>\r\nReturn-Path: 
<aususua at mxdat.com>\r\nReply-To: 
<aususua at mxdat.com>\r\nSubject: Lose 22.5lbs 
in 3 weeks for FREE!\r\n 
\r\n**************************************************
********************\r\nPLEASE DO NOT REPLY TO 
THIS EMAIL - To unsubscribe, please see 
the\r\nsubscription management section at the 
bottom of this 
newsletter.\r\n***************************************
*******************************\r\n\n\n\r\n"I 
Couldn\'t Face Another Holiday Being Called the 
\'FAT ONE\'... \r\nThank God I Found Apple Cider 
Vinegar Enhanced!" \r\n\r\nGet Your Free Bottle & 
SEE FOR YOURSELF! 
\r\n\r\nhttp://209.236.60.3/lc1/go.php?10
\r\n\r\nCLICK HERE FOR DETAILS! \r\nNo Crash 
Diets! No Painful Excercise! 
\r\n\r\nhttp://209.236.60.3/lc1/go.php?10
\r\n\r\n===========================
========================== 
\r\n\r\n\r\nEnjoy your day,\r\n\r\n\r\nDaily Max 
Deal 
Chopper\r\n\r\n\r\n########################
#########################################
#####\r\nIf you no longer wish to receive your 
edition of the Daily Max Deal Chop \r\nNewsletter, 
please follow the link below and follow the simple 
\r\nunsubscribe 
instructions.\r\n\r\nhttp://209.236.60.3/unsub.ht
m\r\n\r\nThe use and unauthorized reproduction 
of this message and delivery header 
\r\ninformation is strictly prohibited.  This e-mail 
is meant for informational \r\npurposes only.  
JudoMonkey makes no guarantees in connection 
with the \r\nproduct(s) or service(s) 
presented.\r\n#############################
#########################################
\r\n\r\nworabvg^plorpgrp(pbz\r\n'
pythoncom error: Python error invoking COM 
method.
Traceback (most recent call last):
  File "D:\PROGRA~1\Python22\lib\site-
packages\win32com\server\policy.py", line 275, in 
_Invoke_
    return self._invoke_(dispid, lcid, wFlags, args)
  File "D:\PROGRA~1\Python22\lib\site-
packages\win32com\server\policy.py", line 280, in 
_invoke_
    return S_OK, -1, self._invokeex_(dispid, lcid, 
wFlags, args, None, None)
  File "D:\PROGRA~1\Python22\lib\site-
packages\win32com\server\policy.py", line 510, in 
_invokeex_
    return apply(func, args)
  File "D:\Program Files\Spambayes\spambayes-
1.0a1\Outlook2000\addin.py", line 315, in OnClick
    if train.train_message(msgstore_message, True, 
self.manager, rescore = True):
  File "D:\Program Files\Spambayes\spambayes-
1.0a1\Outlook2000\train.py", line 43, in 
train_message
    stream = msg.GetEmailPackageObject()
  File "D:\Program Files\Spambayes\spambayes-
1.0a1\Outlook2000\msgstore.py", line 565, in 
GetEmailPackageObject
    msg = email.message_from_string(text)
  File "D:\PROGRA~1\Python22
\Lib\email\__init__.py", line 52, in 
message_from_string
    return Parser(_class, strict=strict).parsestr(s)
  File "D:\PROGRA~1\Python22
\Lib\email\Parser.py", line 75, in parsestr
    return self.parse(StringIO(text), 
headersonly=headersonly)
  File "D:\PROGRA~1\Python22
\Lib\email\Parser.py", line 62, in parse
    self._parseheaders(root, fp)
  File "D:\PROGRA~1\Python22
\Lib\email\Parser.py", line 128, in _parseheaders
    raise Errors.HeaderParseError(
email.Errors.HeaderParseError: Not a header, not a 
continuation: 
``****************************************************
******************''
=====


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

>Comment By: Mark Hammond (mhammond)
Date: 2003-07-02 09:35

Message:
Logged In: YES 
user_id=14198

Fixed in the recent 0.3 binary version

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

Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-06-07 06:27

Message:
Logged In: YES 
user_id=12800

who you calling a monkeyboy, squakhead?

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

Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-06-07 06:22

Message:
Logged In: YES 
user_id=12800

wut shud i feed my 6" burmeez phyton, monkeyboy?

(ignore this -- i'm testing the mailing list :)


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

Comment By: Tim Stone (timstone4)
Date: 2003-02-20 02:47

Message:
Logged In: YES 
user_id=645698

Great.  Thanks for helping out here.

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

Comment By: Jacques Benoit (jbenoit)
Date: 2003-02-20 02:46

Message:
Logged In: YES 
user_id=715810

Installed alpha 2.
Same error in the Python...
File "D:\PROGRA~1\Python22\Lib\email\Parser.py", line 
128, in _parseheaders
    raise Errors.HeaderParseError(
email.Errors.HeaderParseError: Not a header, not a 
continuation:


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

Comment By: Tim Stone (timstone4)
Date: 2003-02-20 02:08

Message:
Logged In: YES 
user_id=645698

Might this have been fixed in alpha 2?

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

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



More information about the spambayes-dev mailing list