[spambayes-bugs] [ spambayes-Bugs-788019 ] decoding of headers for some emails fails

SourceForge.net noreply at sourceforge.net
Wed Aug 13 17:03:23 EDT 2003


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

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Michal Vitecek (fufsource)
Assigned to: Nobody/Anonymous (nobody)
Summary: decoding of headers for some emails fails

Initial Comment:
some mails are incorrectly formed and so the default
error handling in Header.append() (strict) causes
spambayes to insert X-Spambayes-Exception in the mail
instead of continuing and classifying the mail. dirty
solution would be to set the errors parameter to 'ignore'.

unfortunately i don't have the exception message
already or the mail (spam), but remember that the mail
encoding was set to us-ascii and the character that
caused the exception in a call to unicode() wha
CURRENCY SIGN (0xa4)

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

>Comment By: Tony Meyer (anadelonbrin)
Date: 2003-08-14 11:03

Message:
Logged In: YES 
user_id=552329

It's better for us to insert the exception header than crash.  
As ways that mail can be malformed are identified, a fix is 
checked in for them.  I'm fairly sure that your one has already 
had a fix checked into cvs - does it match this?

<http://mail.python.org/pipermail/spambayes/2003-
August/006779.html>

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

Comment By: Hugh Brackett (hbrackett)
Date: 2003-08-14 06:10

Message:
Logged In: YES 
user_id=837287

This message failed to filter due to a Header Parse Error so it 
is probably related. 
Error training message '<MAPIMsgStoreMsg, 'Polaroid Digital 
Camera Liquidation' id=
('0000000038A1BB1005E5101AA1BB08002B2A56C20000505354
5052582E444C4C00000000000000004E495441F9BFB80100AA00
37D96E000000433A5C446F63756D656E747320616E6420536574
74696E67735C65627261636B6574745C4C6F63616C2053657474
696E67735C4170706C69636174696F6E20446174615C4D696372
6F736F66745C4F75746C6F6F6B5C6F75746C6F6F6B2E70737400
', '00000000E789B2E04680BC4384E3C07593D3337F44B02500')
>'
Traceback (most recent call last):
  File "out1.pyz/train", line 91, in train_folder
  File "out1.pyz/train", line 46, in train_message
  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
HeaderParseError: Continuation line seen before first header
Checked 63 in folder Inbox - 59 new entries found.
Checked 38 in folder Inz_SpamSlammer - 31 new entries 
found.
Checked 909 in folder Spam - 752 new entries found.
FAILED to create email.message from:  'Return-path: 
<support at greenbamboo.net>\r\nReceived: from mtain04 
(mtain04-qfe0.icomcast.net [172.20.3.52])\r\n by 
msgstore04.icomcast.net\r\n (iPlanet Messaging Server 5.2 
HotFix 1.16 (built May 14 2003))\r\n with ESMTP id 
<0HJJ00H9I6UUS7 at msgstore04.icomcast.net> for\r\n 
ebrackett at comcast.net; Tue, 12 Aug 2003 20:04:06 -0400 
(EDT)\r\nReceived: from sccrgxc02.comcast.net 
(sccrgxc02.comcast.net [204.127.202.62])\r\n by 
mtain04.icomcast.net\r\n (iPlanet Messaging Server 5.2 
HotFix 1.16 (built May 14 2003))\r\n with ESMTP id 
<0HJJ00FE36UU1N at mtain04.icomcast.net> for 
example at comcast.net\r\n (ORCPT example at comcast.net); 
Tue, 12 Aug 2003 20:04:06 -0400 (EDT)\r\nReceived: from 
office2.csi.net.uk (unknown[212.15.82.31](misconfigured 
sender))\r\n by comcast.net (sccrgxc02) with SMTP id 
<20030813000356e0200cmmeme>; Wed,\r\n 13 Aug 2003 
00:04:06 +0000\r\nReceived: from em20.greenbamboo.net 
(em20.greenbamboo.net [216.243.234.150])\r\n\tby 
office2.csi.net.uk (Postfix) with SMTP id 3729A4807\tfor\r\n 
<mp3tour at illudium.com>; Wed, 13 Aug 2003 00:03:46 +0000 
(GMT)\r\nDate: Tue, 12 Aug 2003 19:10:58 -0600\r\nFrom: 
Andy Adams <support at greenbamboo.net>\r\nSubject: 
Polaroid Digital Camera Liquidation\r\nTo: 
mp3tour at illudium.com\r\nMessage-id: 
<1060733458.1154 at em20.greenbamboo.net>\r\nMIME-
version: 1.0\r\nContent-type: multipart/alternative;\r\n 
boundary=Amazon.com_multipart_boundary____________\r\nO
riginal-recipient: 
rfc822;ebrackett at comcast.net\r\n\n\r\n\r\n\r\n<HTML>\r\n<H
EAD></HEAD>\r\n<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 
TOPMARGIN=0 MARGINWIDTH=0 
\r\n\r\nMARGINHEIGHT=0>\r\n<TABLE WIDTH=600 BORDER=0 
CELLPADDING=0 CELLSPACING=0>\r\n\t<TR>\r\n\t\t\r\n    
\r\n\r\n<TD COLSPAN=5> <a 
href="http://216.243.234.150/cgi-bin/clickthru?
c=15&m=1005&e=mp3tour at illudium.com" 
target="_blank"><IMG 
\r\n\r\nSRC="http://www.bluepinstripes.com/eimages/polaroide
mail/photomax_email_2_01.gif" ALT="" WIDTH=600 
\r\n\r\nHEIGHT=48 
border="0"></a></TD>\r\n\t\t<TD>\r\n\t\t\t<IMG 
SRC="polaroidimages/spacer.gif" \r\n\r\nWIDTH=1 HEIGHT=48 
ALT=""></TD>\r\n\t</TR>\r\n\t<TR>\r\n\t\t\r\n    <TD 
COLSPAN=5> <a href="http://216.243.234.150/cgi-
bin/clickthru?c=15&m=1005&e=mp3tour at illudium.com"><IMG 
\r\n\r\nSRC="http://www.bluepinstripes.com/eimages/polaroide
mail/photomax_email_2_02.gif" ALT="" WIDTH=600 
\r\n\r\nHEIGHT=23 
border="0"></a></TD>\r\n\t\t<TD>\r\n\t\t\t<IMG 
SRC="polaroidimages/spacer.gif" \r\n\r\nWIDTH=1 HEIGHT=23 
ALT=""></TD>\r\n\t</TR>\r\n\t<TR>\r\n\t\t\r\n    <TD 
COLSPAN=3> <a href="http://216.243.234.150/cgi-
bin/clickthru?c=15&m=1005&e=mp3tour at illudium.com"><IMG 
\r\n\r\nSRC="http://www.bluepinstripes.com/eimages/polaroide
mail/photomax_email_2_03.gif" ALT="" WIDTH=336 
\r\n\r\nHEIGHT=47 border="0"></a></TD>\r\n\t\t\r\n    <TD 
COLSPAN=2 ROWSPAN=2> <a 
href="http://216.243.234.150/cgi-bin/clickthru?
c=15&m=1005&e=mp3tour at illudium.com" 
\r\n\r\ntarget="_blank"><IMG 
SRC="http://www.bluepinstripes.com/eimages/polaroidemail/ph
otomax_email_2_04.gif" ALT="" \r\n\r\nWIDTH=264 
HEIGHT=202 
border="0"></a></TD>\r\n\t\t<TD>\r\n\t\t\t<IMG 
\r\n\r\nSRC="polaroidimages/spacer.gif" WIDTH=1 HEIGHT=47 
ALT=""></TD>\r\n\t</TR>\r\n\t<TR>\r\n\t\t\r\n    <TD 
\r\n\r\nCOLSPAN=3 ROWSPAN=2> <a 
href="http://216.243.234.150/cgi-bin/clickthru?
c=15&m=1005&e=mp3tour at illudium.com" 
target="_blank"><IMG 
\r\n\r\nSRC="http://www.bluepinstripes.com/eimages/polaroide
mail/photomax_email_2_05.jpg" ALT="" WIDTH=336 
\r\n\r\nHEIGHT=168 
border="0"></a></TD>\r\n\t\t<TD>\r\n\t\t\t<IMG 
SRC="polaroidimages/spacer.gif" \r\n\r\nWIDTH=1 
HEIGHT=155 
ALT=""></TD>\r\n\t</TR>\r\n\t<TR>\r\n\t\t\r\n    <TD 
ROWSPAN=2> <a href="http://216.243.234.150/cgi-
bin/clickthru?c=15&m=1005&e=mp3tour at illudium.com" 
\r\n\r\ntarget="_blank"><IMG 
SRC="http://www.bluepinstripes.com/eimages/polaroidemail/ph
otomax_email_2_06.jpg" \r\n\r\nALT="" WIDTH=218 
HEIGHT=91 border="0"></a></TD>\r\n\t\t\r\n    <TD 
ROWSPAN=2> <IMG 
\r\n\r\nSRC="http://www.bluepinstripes.com/eimages/polaroide
mail/photomax_email_2_07.gif" WIDTH=46 HEIGHT=91 
\r\n\r\nALT=""></TD>\r\n\t\t<TD>\r\n\t\t\t<IMG 
SRC="polaroidimages/spacer.gif" WIDTH=1 \r\n\r\nHEIGHT=13 
ALT=""></TD>\r\n\t</TR>\r\n\t<TR>\r\n\t\t\r\n    <TD 
ROWSPAN=3> <IMG 
\r\n\r\nSRC="http://www.bluepinstripes.com/eimages/polaroide
mail/photomax_email_2_08.gif" WIDTH=8 HEIGHT=223 
\r\n\r\nALT=""></TD>\r\n\t\t\r\n    <TD ROWSPAN=2> <a 
href="http://216.243.234.150/cgi-bin/clickthru?
c=15&m=1005&e=mp3tour at illudium.com"><IMG 
\r\n\r\nSRC="http://www.bluepinstripes.com/eimages/polaroide
mail/photomax_email_2_09.jpg" ALT="" WIDTH=147 
\r\n\r\nHEIGHT=219 border="0"></a></TD>\r\n\t\t\r\n    <TD 
ROWSPAN=3> <a href="http://216.243.234.150/cgi-
bin/clickthru?c=15&m=1005&e=mp3tour at illudium.com"><IMG 
\r\n\r\nSRC="http://www.bluepinstripes.com/eimages/polaroide
mail/photomax_email_2_10.gif" ALT="" WIDTH=181 
\r\n\r\nHEIGHT=223 
border="0"></a></TD>\r\n\t\t<TD>\r\n\t\t\t<IMG 
SRC="polaroidimages/spacer.gif" \r\n\r\nWIDTH=1 HEIGHT=78 
ALT=""></TD>\r\n\t</TR>\r\n\t<TR>\r\n\t\t\r\n    <TD 
COLSPAN=2 ROWSPAN=2> <a 
\r\n\r\nhref="http://216.243.234.150/cgi-bin/clickthru?
c=15&m=1005&e=mp3tour at illudium.com" 
target="_blank"><IMG 
\r\n\r\nSRC="http://www.bluepinstripes.com/eimages/polaroide
mail/photomax_email_2_11.gif" ALT="" WIDTH=264 
\r\n\r\nHEIGHT=145 
border="0"></a></TD>\r\n\t\t<TD>\r\n\t\t\t<IMG 
SRC="polaroidimages/spacer.gif" \r\n\r\nWIDTH=1 
HEIGHT=141 
ALT=""></TD>\r\n\t</TR>\r\n\t<TR>\r\n\t\t\r\n    <TD> <IMG 
\r\n\r\nSRC="http://wwwbluepinstripes.com/eimages/polaroide
mail/photomax_email_2_12.gif" WIDTH=147 HEIGHT=4 
\r\n\r\nALT=""></TD>\r\n\t\t<TD>\r\n\t\t\t<IMG 
SRC="polaroidimages/spacer.gif" WIDTH=1 \r\n\r\nHEIGHT=4 
ALT=""></TD>\r\n\t</TR>\r\n</TABLE>\r\n<p> 
</p>\r\n\r\n\r\n\r\n<IMG SRC="http://216.243.234.150/cgi-
bin/view?v=7&m=1005&e=mp3tour at illudium.com" WIDTH=1 
HEIGHT=1 
ALT="">\r\n\r\n\r\n\r\n\r\n<br><br><br><br><br><br><br><br
><br><br><br><br><br><br><br><br><br><br><table 
border="0" width="515" cellspacing="0"cellpadding="0" 
align=center>\r\n\r\n<tr><td><font 
color="#000000">*********************************
***************************************</tr></td
>\r\n\r\n<tr><td>\r\n\r\n<font color="#000000">The 
preceding advertisement was sent you by virtue of your 
participation in the Special Product Offerings of Greenbamboo 
or our partners.  To\r\nunsubscribe from receiving further 
emails from Greenbamboo Special Product Offerings please <a 
href="http://216.243.234.150/cgi-bin/unsub.cgi?
m=1005&e=mp3tour at illudium.com">click 
here</a>.\r\n\r\n<br><br>\r\n\r\nFor information about how 
Greenbamboo obtained your name and how Greenbamboo 
operates this list, please review our <A 
href="http://www.greenbamboo.net/privacy.html">Privacy 
Policy</A>.\r\nAs is stated in our Privacy Policy, 
Greenbamboo does not promote or endorse any of the 
companies advertising through us. Please contact 
Greenbamboo for any comments you may have regarding your 
participation.  We may transfer your e-mail address to our 
partners at\r\nany time.zc3gbhe^vyyhqvhz
(pbz</td></tr>\r\n\r\n<tr><td><font 
color="#000000">*********************************
**************************************</font><br
><br><br>\r\n\r\n</td></tr></table></pre></body></html>--
Amazon.com_multipart_boundary____________\n #Polaroid 
PhotoMAX PDC 330 Digital Camera! Great Camera\r\nBetter 
Price! 3 in 1 Camera - Digital, Web & Video Cam.\r\n\r\nClick 
Here\r\nhttp://216.243.234.150/cgi-bin/clickthru?
c=14&m=1005&e=mp3tour at illudium.com\r\n\r\nSAVE OVER 
$350 on this great bundle. \r\n\r\nGet Over 80% off AND $200 
of software FREE!\r\n\r\nClick 
Here\r\nhttp://216.243.234.150/cgi-bin/clickthru?
c=14&m=1005&e=mp3tour at illudium.com\r\n\r\nThis Polaroid 
Digital Camera Special comes with everything you 
need:\r\n\r\n- Polaroid PhotoMAX PDC 330 Digital Camera\r\n- 
Over $200 of FREE Software\r\n- Award winning image editing 
software\r\n- Batteries, Wrist Strap and USB Cable\r\n- And a 
BONUS GIFT!\r\n\r\nA Great Digital Camera from a brand you 
can trust!\r\n\r\nClick Here!!\r\nhttp://216.243.234.150/cgi-
bin/clickthru?
c=14&m=1005&e=mp3tour at illudium.com\r\n\r\n\r\n\r\n\r\n\r\n
**********************************************
**********************************************
**\r\nThe preceding advertisement was sent you by virtue of 
your participation\r\nin the Special Product Offerings of 
Greenbamboo or our partners.  To \r\nunsubscribe from 
receiving further emails from Greenbamboo\'s Special 
\r\nProduct Offerings please click 
here:\r\n\r\nhttp://216.243.234.150/cgi-bin/unsub.cgi?
m=1005&e=mp3tour at illudium.com\r\n\r\nFor information 
about how Greenbamboo obtained your name and how 
\r\nGreenbamboo operates this list, please review 
http://www.greenbamboo.net/privacy.html \r\nAs is stated in 
our Privacy Policy, Greenbamboo does not \r\npromote or 
endorse any of the companies advertising through us. Please 
\r\ncontact Greenbamboo for any comments you may have 
regarding your \r\nparticipation. We may transfer your e-mail 
address to our partners at \r\nany time.zc3gbhe^vyyhqvhz
(pbz\r\n****************************************
**********************************************
*****\r\n'


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

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



More information about the Spambayes-bugs mailing list