[spambayes-bugs] [ spambayes-Bugs-779049 ]
email.Errors.HeaderParseError: Continuation line seen ...
SourceForge.net
noreply at sourceforge.net
Tue Jul 29 05:09:10 EDT 2003
Bugs item #779049, was opened at 2003-07-29 03:29
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=779049&group_id=61702
Category: Outlook
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Paul R. Brown (paulrbrown)
Assigned to: Mark Hammond (mhammond)
Summary: email.Errors.HeaderParseError: Continuation line seen ...
Initial Comment:
I have some messages that SPAMBayes will neither score
nor filter. Accessing the drop-down to view the
current message scores results in nothing -- no error,
no scores, just silence.
My guess is that it's because of bad MIME? (I'll have
to dust off an RFC or two and find out...) The
following appears in each message:
--= Multipart Boundary 1722809
Content-Type: text/plain; charset="Windows-1251"
Content-Transfer-Encoding: 7bit
--= Multipart Boundary 1722809
Content-Type: text/html; charset="Windows-1251"
Content-Transfer-Encoding: 7bit
[... content here ...]
--= Multipart Boundary 1722809--
The offending message (in Outlook format) is attached.
Environment is Outlook 2003 (w/updates), WinXP,
Exchange 2000.
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2003-07-29 21:09
Message:
Logged In: YES
user_id=14198
Checking in msgstore.py;
new revision: 1.59; previous revision: 1.58
----------------------------------------------------------------------
Comment By: James Seward (jamesoff)
Date: 2003-07-29 20:23
Message:
Logged In: YES
user_id=582117
Another example in case it helps. This is Outlook 2002 SP-1
on WinXP SP-1 talking to Exchange 2000 (although I had this
problem with the previous version of Exchange too).
This problems occurs with roughly 20% of my emails which I
class as spam.
--- begin logfile snippet ---
Loaded bayes database from 'C:\Documents and
Settings\jamess\Application
Data\SpamBayes\default_bayes_database.db'
Loaded message database from 'C:\Documents and
Settings\jamess\Application
Data\SpamBayes\default_message_database.db'
Bayes database initialized with 59 spam and 1753 good
messages
SpamBayes Outlook Addin (beta), Binary version 0.6 (July 29,
2003) starting (with engine SpamBayes Beta2, version 0.2
(July 2003))
on Windows 5.1.2600 (Service Pack 1)
using Python 2.3c1 (#44, Jul 21 2003, 09:21:38) [MSC
v.1200 32 bit (Intel)]
...
FAILED to create email.message from: 'X-MS-Mail-Gibberish:
Microsoft Mail Internet Headers Version 2.0\r\nReceived: from
lfallback0.lnd.ops.eu.uu.net ([62.189.34.25]) by
mailhost.greymatter.co.uk with Microsoft SMTPSVC
(5.0.2195.5329);\r\n\t Tue, 29 Jul 2003 10:42:55 +0100
\r\nReceived: from mail3.sendmeoffers.com
([64.253.204.241])\r\n\tby lfallback0.lnd.ops.eu.uu.net with
esmtp (Exim 3.22 #1)\r\n\tid 19gpGb-0006ll-00\r\n\tfor
jamess at greymatter.com; Sun, 27 Jul 2003 17:25:06 +0000
\r\nReceived: from sendmeoffers.com (192.168.1.8)\r\n by
mail3.sendmeoffers.com with SMTP; 27 Jul 2003 13:25:03 -
0400\r\nFrom: Gourmet Coffee Direct<749-2211081-
unsubscribe at sendmeoffers.com>\r\nTo:
jamess at greymatter.com \r\nSubject: Gevalia\'s summer sale!
A limited-time offer for the uncommon coffee drinker\r\nDate:
Sun, 27 Jul 2003 11:32:44 -0400\r\nContent-Type:
multipart/alternative;\r\n boundary="= Multipart
Boundary 2211081" \r\nX-Priority: 3 \r\nX-MSMail-Priority:
Normal \r\nX-Mailer: Microsoft Outlook IMO, Build 9.0.2416
(9.0.2911.0) \r\nX-MimeOLE: Produced By Microsoft
MimeOLE V6.00.2800.1106 \r\nMime-Version: 1.0
\r\nMessage-Id: <E19gpGb-0006ll-
00 at lfallback0.lnd.ops.eu.uu.net>\r\nReturn-Path: 749-
2211081-unsubscribe at sendmeoffers.com\r\nX-
OriginalArrivalTime: 29 Jul 2003 09:42:56.0002 (UTC)
FILETIME=[C9D35E20:01C355B5]
\r\n\n<HTML><HEAD><TITLE>Gevalia
Iced.</TITLE>\r\n</HEAD>\r\n<BODY
bgColor=#ffffff>\r\n<CENTER>\r\n<TABLE cellSpacing=0
cellPadding=0 width=600 border=0>\r\n <TBODY>\r\n
<TR>\r\n <TD colSpan=3><IMG height=5 \r\n
src="http://img.2prove.com/geval/iced/gevalia_disclaimer_01.
gif" width=600></TD></TR>\r\n <TR>\r\n <TD
background="http://img.2prove.com/geval/iced/gevalia_disclai
mer_02.gif"><IMG height=6 \r\n
src="http://img.2prove.com/geval/iced/gevalia_disclaimer_02.
gif" width=5></TD>\r\n <TD width=590 height=6><FONT
face="Arial, Helvetica, sans-serif" \r\n color=#142e76
size=1>This email and offer have not been sent to you by
\r\n Gevalia Kaffe, but by a 3rd party where you may
have opted in to receive \r\n updates. To opt-out or
unsubscribe, please follow instructions as provided \r\n by
the sender.</FONT></TD>\r\n <TD
background=http://img.2prove.com/geval/iced/gevalia_disclai
mer_04.jpg><IMG height=6 \r\n
src="http://img.2prove.com/geval/iced/gevalia_disclaimer_04.j
pg" width=5></TD></TR>\r\n <TR>\r\n <TD
colSpan=3><IMG height=5 \r\n
src="http://img.2prove.com/geval/iced/gevalia_disclaimer_05.
gif"
\r\nwidth=600></TD></TR></TBODY></TABLE>\r\n<TABLE
cellSpacing=0 cellPadding=0 width=600 border=0>\r\n
<TBODY>\r\n <TR>\r\n <TD colSpan=2><IMG height=19
\r\n
src="http://img.2prove.com/geval/iced/gevalia_iced_01.gif"
width=268></TD>\r\n <TD rowSpan=3><IMG height=400
\r\n
src="http://img.2prove.com/geval/iced/gevalia_iced_02.jpg"
width=332></TD></TR>\r\n <TR>\r\n <TD><IMG
height=334
src="http://img.2prove.com/geval/iced/gevalia_iced_03.gif"
\r\n width=15></TD>\r\n <TD vAlign=top width=253
height=334>\r\n <P><FONT face="Arial, Helvetica, sans-
serif" color=#142e76 \r\n size=3><STRONG>Experience a
pleasure that\'s uniquely yours - and purely \r\n Gevalia
Kaffe.</STRONG></FONT><BR><FONT \r\n face="Arial,
Helvetica, sans-serif" size=2>An uncommon offer for an
\r\n uncommon coffee drinker. Just place your order
today and receive, for \r\n <FONT
color=#142e76><STRONG>only $12.95</STRONG></FONT>,
including \r\n shipping &
handling:</FONT><BR><BR><FONT \r\n face="Arial,
Helvetica, sans-serif" size=2><IMG height=135 \r\n
alt="Gevalia Coffee"
src="http://img.2prove.com/geval/iced/coffee_makers_sm.jpg"
\r\n width=120 align=left>- Two boxes of our
extraordinary coffee<BR>- A 12-cup \r\n Programmable
Coffeemaker <STRONG><FONT \r\n
color=#142e76>FREE</FONT></STRONG><BR>- Two Gevalia
Ceramic Mugs \r\n <STRONG><FONT
color=#142e76>FREE</FONT></STRONG></FONT></P>\r\n
<P><FONT face="Arial, Helvetica, sans-serif" color=#142e76
\r\n size=2><EM><BR>(Approximate retail value $75)
</EM><br>\r\n\t <font face="arial,helvetica,san-serif"
size="1">\r\n This offer expires August 15,
2003<br></FONT></P></TD></TR>\r\n <TR>\r\n <TD
colSpan=2><A
href="http://www.sendmeoffers.com/c/c749c.php?
ea=amFtZXNzQGdyZXltYXR0ZXIuY29t"><IMG height=47
\r\n
src="http://img.2prove.com/geval/iced/gevalia_iced_05.jpg"
width=268 \r\n
border=0></A></TD></TR></TBODY></TABLE></CENTER>\r\n
\r\n\r\n<img
src="http://www.sendmeoffers.com/o/o749o.php?
ea=amFtZXNzQGdyZXltYXR0ZXIuY29t" width="1" height="1"
alt="" border="0">\r\n <br> <br><center><table
bgcolor="#c0c0c0" width=600 border=0 cellpadding="1"
cellspacing="2"><tr><td bgcolor="#efefef" align=center><font
face=verdana size=1 color=black>To stop receiving offers <a
href="http://www.sendmeoffers.com/unsubscribe/?
ea=jamess at greymatter.com"><font face=verdana size=1
color=black>Go Here</font></a><font face=verdana size=1
color=black> or send mail to:<br>Unsubscribe
Department<br>1730 S. Federal Hwy, Suite 116<br>Delray
Beach, FL
33483</font></td></tr></table></center>\r\n</body>\r\n</h
tml>\r\n\r\n--= Multipart Boundary 2211081-- \r\n\r\n\nHere
Is Our Offering:\r\n\r\nExperience a pleasure that\'s uniquely
yours and purely Gevalia Kaffe. \r\nJust place your order
today and receive, for only $12.95, including shipping &
handling:\r\n\r\n-Two boxes of our extraordinary coffee\r\n-A
12-cup Programmable Automatic Drip Coffeemaker\r\n-Two
matching Gevalia Ceramic Mugs Free\r\n(Approximate retail
value $ 85)\r\n\r\nYou can cancel at any time with no further
obligation.\r\n\r\nhttp://www.sendmeoffers.com/c/c749c.php?
ea=amFtZXNzQGdyZXltYXR0ZXIuY29t\r\n\r\nOrder Right
Now.\r\n\r\nThis order expires July 28, 2003.\r\n\r\n\r\nStop
receiving
offers:\r\nhttp://www.sendmeoffers.com/unsubscribe/?
ea=jamess at greymatter.com\r\n\r\n'
pythoncom error: Python error invoking COM method.
Traceback (most recent call last):
File "out1.pyz/win32com.server.policy", line 275, in _Invoke_
File "out1.pyz/win32com.server.policy", line 280, in _invoke_
File "out1.pyz/win32com.server.policy", line 541, in
_invokeex_
File "out1.pyz/addin", line 228, in OnClick
File "out1.pyz/addin", line 424, in ShowClues
File "out1.pyz/manager", line 677, in score
File "out1.pyz/msgstore", line 734, in GetEmailPackageObject
File "out1.pyz/email", line 52, in message_from_string
File "out1.pyz/email.Parser", line 75, in parsestr
File "out1.pyz/email.Parser", line 64, in parse
File "out1.pyz/email.Parser", line 239, in _parsebody
File "out1.pyz/email.Parser", line 75, in parsestr
File "out1.pyz/email.Parser", line 62, in parse
File "out1.pyz/email.Parser", line 111, in _parseheaders
email.Errors.HeaderParseError: Continuation line seen before
first header
--- EOF ---
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2003-07-29 15:29
Message:
Logged In: YES
user_id=14198
FAILED to create email.message from: 'X-MS-Mail-Gibberish:
Microsoft Mail Internet Headers Version 2.0\r\nReceived:
from shfex02.hosting.innerhost.com ([192.168.29.8]) by
shbex01.hosting.innerhost.com with Microsoft
SMTPSVC(5.0.2195.5329);\r\n\t Thu, 24 Jul 2003 15:01:08
-0400\r\nReceived: from mail7.savingscourier.com
([64.253.204.179]) by shfex02.hosting.innerhost.com with
Microsoft SMTPSVC(5.0.2195.6713);\r\n\t Thu, 24 Jul 2003
15:01:08 -0400\r\nReceived: from savingscourier.com
(192.168.1.8)\r\n by mail7.savingscourier.com with SMTP; 24
Jul 2003 15:01:05 -0400\r\nFrom: Mark and
Bob<723-1722809-unsubscribe at savingscourier.com>\r\nTo:
prb at fivesight.com \r\nSubject: Are These Guys Nuts?\r\nDate:
Thu, 24 Jul 2003 13:20:05 -0400\r\nContent-Type:
multipart/alternative;\r\n boundary="= Multipart
Boundary 1722809" \r\nX-Priority: 3 \r\nX-MSMail-Priority:
Normal \r\nX-Mailer: Microsoft Outlook IMO, Build 9.0.2416
(9.0.2911.0) \r\nX-MimeOLE: Produced By Microsoft MimeOLE
V6.00.2800.1106 \r\nMime-Version: 1.0 \r\nReturn-Path:
723-1722809-unsubscribe at savingscourier.com\r\nMessage-ID:
<SHFEX02stgr3SU0hXCR00000274 at shfex02.hosting.innerhost.com>\r\nX-OriginalArrivalTime:
24 Jul 2003 19:01:08.0236 (UTC)
FILETIME=[F0AFF4C0:01C35215]\r\n\n<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01
Transitional//EN">\r\n<html>\r\n<head>\r\n<META
HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=windows-1251">\r\n\r\n\t<title>Are These Guys
Nuts?</title>\r\n</head>\r\n<body bgcolor="#ffffff"
marginheight="0" marginwidth="0" leftmargin="0"
topmargin="0">\r\n<div align="center"><a
href="http://www.savingscourier.com/c/c723c.php?ea=cHJiQGZpdmVzaWdodC5jb20="><img
src="http://freeimagehosting.sendmebargains.com/onemin/franklincreative.jpg"
alt="" width="433" height="370"
border="0"></a></div>\r\n\r\n\r\n\r\n\r\n<img
src="http://www.savingscourier.com/o/o723o.php?ea=cHJiQGZpdmVzaWdodC5jb20="
width="1" height="1" alt=""
border="0">\r\n <br> <br><center><table
bgcolor="#c0c0c0" width=433 border=0 cellpadding="1"
cellspacing="2"><tr><td bgcolor="#efefef" align=center><font
face=verdana size=1 color=black>To stop receiving offers <a
href="http://www.savingscourier.com/unsubscribe/?ea=prb@fivesight.com"><font
face=verdana size=1 color=black>Go Here</font></a><font
face=verdana size=1 color=black> or send mail
to:<br>Unsubscribe Department<br>1730 S. Federal Hwy, Suite
116<br>Delray Beach, FL
33483</font></td></tr></table></center>\r\n</body>\r\n</html>\r\n\r\n--=
Multipart Boundary 1722809-- \r\n\r\n\n
<http://www.savingscourier.com/c/c723c.php?ea=cHJiQGZpdmVzaWdodC5jb20=>
\r\n
<http://www.savingscourier.com/o/o723o.php?ea=cHJiQGZpdmVzaWdodC5jb20=>
\r\n \r\n\r\nTo stop receiving offers
<http://www.savingscourier.com/unsubscribe/?ea=prb@fivesight.com>
Go Here or send mail to:\r\nUnsubscribe Department\r\n1730
S. Federal Hwy, Suite 116\r\nDelray Beach, FL 33483\t\r\n--=
Multipart Boundary 1722809-- \r\n'
...
Traceback is:
File "E:\src\spambayes\Outlook2000\manager.py", line 677,
in score
email = msg.GetEmailPackageObject()
File "E:\src\spambayes\Outlook2000\msgstore.py", line 734,
in GetEmailPackageObject
msg = email.message_from_string(text)
File "E:\src\python-cvs\lib\email\__init__.py", line 52,
in message_from_string
return Parser(_class, strict=strict).parsestr(s)
File "E:\src\python-cvs\lib\email\Parser.py", line 75, in
parsestr
return self.parse(StringIO(text), headersonly=headersonly)
File "E:\src\python-cvs\lib\email\Parser.py", line 64, in
parse
self._parsebody(root, fp, firstbodyline)
File "E:\src\python-cvs\lib\email\Parser.py", line 239, in
_parsebody
msgobj = self.parsestr(part)
File "E:\src\python-cvs\lib\email\Parser.py", line 75, in
parsestr
return self.parse(StringIO(text), headersonly=headersonly)
File "E:\src\python-cvs\lib\email\Parser.py", line 62, in
parse
firstbodyline = self._parseheaders(root, fp)
File "E:\src\python-cvs\lib\email\Parser.py", line 111, in
_parseheaders
raise Errors.HeaderParseError(
email.Errors.HeaderParseError: Continuation line seen before
first header
----------------------------------------------------------------------
Comment By: Paul R. Brown (paulrbrown)
Date: 2003-07-29 03:32
Message:
Logged In: YES
user_id=532486
Another take on the same message.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=779049&group_id=61702
More information about the Spambayes-bugs
mailing list