That was not the problem (syntax error). Only certain emails in TMDA pending caused the error.
Pending came up fine except when certain emails were in pending. I do not fully get Unicode.py yet but there are certain emails that cause it to dump. Sam -----Original Message----- From: Yvan Taviaud [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 12:09 PM To: Samuel Hill Subject: Re: Unicode Error - Tmda-CGI 0.13 Hi, In fact you must be really careful with the Tab on the left. If this cause a major error (the whole page of TMDA is showing an error, and the menu on the left disappears) then it's a syntax error, and the code is probably ok (it do work for me). So keep the same syntax (tabs, spaces, semi-colons) as the line replaced/followed. I can join you the file if you want. Regards, Yvan Taviaud, :: Ingénieur ENSAM :: :: Tél : 06 65 19 72 72 :: :: [EMAIL PROTECTED] :: :: www.lacoccinelle.net :: :: www.astronomike.net :: ----- Original Message ----- From: "Samuel Hill" <[EMAIL PROTECTED]> To: "'Yvan Taviaud'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 29, 2004 6:05 PM Subject: RE: Unicode Error - Tmda-CGI 0.13 Okay, the fix below is bad. Causes more trouble than before. Appreciate the effort though. Any other ideas on the below problem? Sam -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Samuel Hill Sent: Monday, March 29, 2004 9:06 AM To: 'Yvan Taviaud' Cc: [EMAIL PROTECTED] Subject: RE: Unicode Error - Tmda-CGI 0.13 Thanks... -----Original Message----- From: Yvan Taviaud [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 5:26 AM To: Samuel Hill Subject: Re: Unicode Error - Tmda-CGI 0.13 Hello, I couldn't post on the newsgroup so I'm reaching you directly. I've made a (probably bad) workaround, that changes all "éŕč..." into "_" characters : Start of Unicode.py : # Handy values AltChar = re.compile("[\x80-\xFF]") UTF8 = codecs.lookup("utf-8")[0] YvanTest = re.compile("[\xe0-\xe9]") <<<<< Add this line End of same file : try: Uni = Decoder(Str, errors = Errors)[0] except: # Uni = Decoder(Str)[0] <<<< Comment this line Uni = YvanTest.sub('_', Str) <<<<<<<<<< Add this line Regards, -- Yvan, .: La Coccinelle du Net :: Traductions de chansons :: http://www.lacoccinelle.net :. .: AstronoMike.Net :: Annuaire de l'astrophoto :: http://www.astronomike.net :. ----- Original Message ----- From: "Samuel Hill" <[EMAIL PROTECTED]> Newsgroups: gmane.mail.spam.tmda.user Sent: Wednesday, March 24, 2004 4:20 PM Subject: Unicode Error - Tmda-CGI 0.13 > I found a message in pending that causes tmda-cgi to crash upon > opening pending. The error is below and the message is below that. > > Thanks! > > Sam > > ---------------------------------------------------------------------- > -- > ------ > > > UnicodeError Python 2.2.3: /usr/local/bin/python2.2 > Wed Mar 24 09:16:16 2004 > > A problem occurred in a Python script. Here is the sequence of > function calls leading up to the error, in the order they occurred. > > /usr/local/tmda/tmda-cgi-0.13/tmda-cgi.py > 188 elif Cmd == "pending": > 189 import PendList > 190 Call(PendList) > 191 elif Cmd == "restore": > 192 pass > Call = <function Call>, PendList = <module 'PendList' from > 'PendList.py'> > > /usr/local/tmda/tmda-cgi-0.13/tmda-cgi.py in Call(Library=<module > 'PendList' from 'PendList.py'>, Str=None) > 86 Library.Show(Str) > 87 else: > 88 Library.Show() > 89 > 90 # Capture WebUID > Library = <module 'PendList' from 'PendList.py'>, Library.Show = > <function Show> > > /usr/local/tmda/tmda-cgi-0.13/PendList.py in Show() > 475 value += Unicode.TranslateToUTF8(CharSet, > decoded[0], "ignore") > 476 else: > 477 value += Unicode.TranslateToUTF8(CharSet, decoded[0], > "ignore") > 478 Subject = value > 479 if len(Subject) > int(PVars[("PendingList", > "CropSubject")]): > value = '', global Unicode = <module 'Unicode' from 'Unicode.pyc'>, > Unicode.TranslateToUTF8 = <function TranslateToUTF8>, CharSet = > 'us_ascii', decoded = ('!! Dawna, If it\x92s good enough for the Mayor > of NY (HotStockPro)...', None) > > /usr/local/tmda/tmda-cgi-0.13/Unicode.py in > TranslateToUTF8(CharSet='us_ascii', Str='!! Dawna, If it\x92s good > enough for the Mayor of NY (HotStockPro)...', Errors='ignore') > 113 Uni = Decoder(Str, errors = Errors)[0] > 114 except: > 115 Uni = Decoder(Str)[0] > 116 > 117 # Encode for UTF-8 > Uni undefined, Decoder = <built-in function ascii_decode>, Str = '!! > Dawna, If it\x92s good enough for the Mayor of NY (HotStockPro)...' > > UnicodeError: ASCII decoding error: ordinal not in range(128) > __doc__ = 'Unicode related error.' > __getitem__ = <bound method UnicodeError.__getitem__ of > <exceptions.UnicodeError instance>> > __init__ = <bound method UnicodeError.__init__ of > <exceptions.UnicodeError instance>> > __module__ = 'exceptions' > __str__ = <bound method UnicodeError.__str__ of > <exceptions.UnicodeError instance>> > args = ('ASCII decoding error: ordinal not in range(128)',) > > > UnicodeError Python 2.2.3: /usr/local/bin/python2.2 > Wed Mar 24 09:16:16 2004 > > A problem occurred in a Python script. Here is the sequence of > function calls leading up to the error, in the order they occurred. > > /usr/local/tmda/tmda-cgi-0.13/tmda-cgi.py > 188 elif Cmd == "pending": > 189 import PendList > 190 Call(PendList) > 191 elif Cmd == "restore": > 192 pass > Call = <function Call>, PendList = <module 'PendList' from > 'PendList.py'> > > /usr/local/tmda/tmda-cgi-0.13/tmda-cgi.py in Call(Library=<module > 'PendList' from 'PendList.py'>, Str=None) > 86 Library.Show(Str) > 87 else: > 88 Library.Show() > 89 > 90 # Capture WebUID > Library = <module 'PendList' from 'PendList.py'>, Library.Show = > <function Show> > > /usr/local/tmda/tmda-cgi-0.13/PendList.py in Show() > 475 value += Unicode.TranslateToUTF8(CharSet, > decoded[0], "ignore") > 476 else: > 477 value += Unicode.TranslateToUTF8(CharSet, decoded[0], > "ignore") > 478 Subject = value > 479 if len(Subject) > int(PVars[("PendingList", > "CropSubject")]): > value = '', global Unicode = <module 'Unicode' from 'Unicode.pyc'>, > Unicode.TranslateToUTF8 = <function TranslateToUTF8>, CharSet = > 'us_ascii', decoded = ('!! Dawna, If it\x92s good enough for the Mayor > of NY (HotStockPro)...', None) > > /usr/local/tmda/tmda-cgi-0.13/Unicode.py in > TranslateToUTF8(CharSet='us_ascii', Str='!! Dawna, If it\x92s good > enough for the Mayor of NY (HotStockPro)...', Errors='ignore') > 113 Uni = Decoder(Str, errors = Errors)[0] > 114 except: > 115 Uni = Decoder(Str)[0] > 116 > 117 # Encode for UTF-8 > Uni undefined, Decoder = <built-in function ascii_decode>, Str = '!! > Dawna, If it\x92s good enough for the Mayor of NY (HotStockPro)...' > > UnicodeError: ASCII decoding error: ordinal not in range(128) > __doc__ = 'Unicode related error.' > __getitem__ = <bound method UnicodeError.__getitem__ of > <exceptions.UnicodeError instance>> > __init__ = <bound method UnicodeError.__init__ of > <exceptions.UnicodeError instance>> > __module__ = 'exceptions' > __str__ = <bound method UnicodeError.__str__ of > <exceptions.UnicodeError instance>> > args = ('ASCII decoding error: ordinal not in range(128)',) > > > > ---------------------------------------------------------------------- > -- > ----------------------------------- > > ---------------------------------------------------------------------- > -- > ----------------------------------- > Return-Path: <[EMAIL PROTECTED]> > Delivered-To: [EMAIL PROTECTED] > Received: (qmail 70949 invoked from network); 24 Mar 2004 06:58:11 -0500 > Received: from unknown (HELO mx2.domain.com) (65.110.96.77) > by mail.domain.com with SMTP; 24 Mar 2004 06:58:11 -0500 > Received: (qmail 32368 invoked by uid 85); 24 Mar 2004 11:57:46 -0000 > Received: from [EMAIL PROTECTED] by mx2.domain.com by uid 82 with > MX2-Antivirus-AntiSpam > Received: from unknown (HELO mail17.incomebuddy.com) (207.8.195.178) > by mx2.domain.com with SMTP; 24 Mar 2004 11:57:43 -0000 > Received-SPF: none (mx2.domain.com: domain at incomebuddy.com does not > designate permitted sender hosts) > From: "Robert Valenzo" <[EMAIL PROTECTED]> > Date: Wed, 24 Mar 2004 01:00:00 -0500 > Errors-To: [EMAIL PROTECTED] > Reply-To: "Robert Valenzo" <[EMAIL PROTECTED]> > X-Abuse: [EMAIL PROTECTED] > X-User: homecareers > X-Group: 3 > To: "Dawna Gray" <[EMAIL PROTECTED]> > X-ContactEmail: [EMAIL PROTECTED] > X-ContactID: 8453451 > MIME-Version: 1.0 > Content-Type: multipart/alternative; > boundary="------=_NextPart_db748b79149261781f771d056139cea3" > X-MX2-WestPA-AntiVirus-AntiSpam-Message-ID: > <[EMAIL PROTECTED]> > X-Spam-Status: Yes, hits=7.4 required=5.0 > tests=CLICK_BELOW,DATE_IN_PAST_03_06,FRONTPAGE,HTML_40_50, > HTML_FONT_BIG,HTML_FONT_COLOR_BLUE,HTML_FONT_COLOR_GRAY, > HTML_FONT_COLOR_RED,HTML_FONT_FACE_ODD, > HTML_LINK_CLICK_HERE,HTML_MESSAGE,HTML_TAG_EXISTS_TBODY, > MIME_BOUND_NEXTPART,MIME_DEFICIENT_QP,MIME_LONG_LINE_QP, > MSGID_HAS_NO_AT,REMOVAL_INSTRUCTIONS > version=2.55 > X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) > X-Spam-Report: ---- Start SpamAssassin results > 7.40 points, 5 required; > * 0.1 -- Message-Id has no @ sign > * 0.6 -- BODY: Gives instructions for removal from list > * 0.5 -- BODY: HTML has "tbody" tag > * 0.1 -- BODY: HTML font face is not a commonly used face > * 0.1 -- BODY: HTML font color is red > * 0.1 -- BODY: HTML included in message > * 0.2 -- BODY: FONT Size +2 and up or 3 and up > * 0.1 -- BODY: HTML font color is blue > * 1.1 -- BODY: Message is 40% to 50% HTML > * 0.1 -- BODY: HTML link text says "click here" > * 0.1 -- BODY: HTML font color is gray > * 0.5 -- BODY: Frontpage used to create the message > * 0.3 -- RAW: Quoted-printable line longer than 76 characters > * 2.3 -- RAW: Deficient quoted-printable encoding in body > * 0.3 -- Date: is 3 to 6 hours before Received: date > * 0.5 -- Asks you to click below > * 0.4 -- Spam tool pattern in MIME boundary > ---- End of SpamAssassin results > X-Spam-Flag: YES > Subject: !! Dawna, If it's good enough for the Mayor of NY > (HotStockPro)... > X-TMDA-Action: CONFIRM action_incoming > X-TMDA-Recipient: [EMAIL PROTECTED] > > This is a multi-part message in MIME format. > > > --------=_NextPart_db748b79149261781f771d056139cea3 > Content-Type: text/plain; > charset="US_ASCII" > Content-Transfer-Encoding: 7bit > Content-Transfer-Encoding: quoted-printable > > Hello again Dawna, > > If Bloomburg Radio likes our product, that should tell > you that you've stumbled upon something BIG! > > Quite simply, here is YOUR chance to get in on the EARLY marketing > wave, offering the high caliber, widely acclaimed stock picking > service called the iDayo Indicator. > > It's for EVERYBODY who would like to be making money > in the stock market...but lacks the time and expertise > to make the right picks. > > >From butcher and baker to candlestick maker...to your > banker, your employer, your 401k, your insurance broker, > your neighbor, your mechanic, your pastor... > > HERE is the way ANYONE can spend 20 minutes a week and > feel totally confident they are going to enjoy profits > beyond their wildest dreams, year after year. > > Buy low, sell high. Now it's EASY. > > Listen to this 7-minute overview NOW! > > <A > href="http://PlayAudio-123.com/play.asp?m=59607&f=JOLOTE&ps=7&p=1">Pla > y > Audio Message</a> > > If you have never experienced the ENORMOUS flood of > INC0ME that can come from the Perpetual Leverage > compensation plan, you have an AWESOME surprise > coming! > > Join us, and you will soon find 500-900 dollar > commissions arriving from directions you never > even knew existed! DAILY PAY!! > > On the way to true freedom, > > Robert Valenzo > TX > 1-888-443-8892 > > http://HotStockPro.com/ss00080 > > P.S. Here's the live call schedule. Make these calls > a high priority--your FUTURE can change dramatically! > Dial in early to be certain of getting a seat! > > 646-519-5860 PIN 1367# > Monday - Tuesday > Eastern......5:00 PM > Central.......4:00 PM > Mountain....3:00 PM > Pacific........2:00 PM > Alaska........1:00 PM > Hawaii......12:00 PM > > Wednesday - Thursday > Eastern......8:30 PM > Central.......7:30 PM > Mountain....6:30 PM > Pacific........5:30 PM > Alaska........4:30 PM > Hawaii........3:30 PM > > 24 Hour Hotline Opportunity Call at 1-971-221-1162 > > Reviewed and Praised by: > > > Spring 2001 - Forbes Magazine > selected iDayo for the second year in a row "Best of the Web" > > January, 2001 - Online Investor Magazine > All Star Site - "iDayo is among the best of the best we've reviewed > over time, "A diamond in the rough." > > Mutual Funds Magazine - November, 2000 > Selected iDayo as one of the 50 Best Investor Websites. > > Forbes, Best Of The Web - Spring 2000 > > > Notice: Past performance is not necessarily indicative of the future > performance of the iDayo Indicator. These postings and any other > information provided on our web sites or through any other > communication > > does not constitute a recommendation to buy or sell stocks or any > other investment. Investing involves the risk of loss and readers are > urged to consult with their own independent financial advisors > > ___________________________________________________________ > > REMOVAL INSTRUCTIONS: You may easily remove > yourself from the above member's account by simply > clicking on the link below and following the instructions: > http://IncomeBuddy.com/r.php?i=ODQ1MzQ1MQ== > > AOL and WebTV Users: > <a href="http://IncomeBuddy.com/r.php?i=ODQ1MzQ1MQ==">Click Here</a> > > Robert Valenzo > 1150 N Loop 1604 Ste 108-434 > San Antonio, TX 78248 > > ___________________________________________________________ > > > > --------=_NextPart_db748b79149261781f771d056139cea3 > Content-Type: text/html; > charset="US_ASCII" > > <html> > > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=windows-1252"> <meta name="GENERATOR" content="Microsoft > FrontPage 4.0"> <meta name="ProgId" > content="FrontPage.Editor.Document"> > <title>New Page 1</title> > </head> > > <body> > > <p><font face="Arial" size="3"><font color="#ff0000">Note: To review > the 0PT-IN details you submitted,<br> please scroll to the bottom of > this message.<br> </font><br> > Hello again Dawna,<br> > <br> > If <font color="#0000FF"><b>Bloomburg Radio</b></font> likes our > product, that > should tell<br> > you that you've stumbled upon something <b>BIG!</b><br> > <br> > Quite simply, here is <b>YOUR</b> chance to get in on the<b> > EARLY</b><br> > marketing wave, offering the high caliber, widely acclaimed<br> > stock picking service called the <font color="#008080"><b>iDayo > Indicator</b></font>.<br> > <br> > It's for <b>EVERYBODY </b>who would like to be making money<br> > in the stock market...but lacks the time and expertise<br> > to make the right picks.<br> > <br> > >From butcher and baker to candlestick maker...to your<br> > banker, your employer, your 401k, your insurance broker,<br> your > neighbor, your mechanic, your pastor...<br> <br> <b>HERE</b> is the > way <b>ANYONE</b> can spend 20 minutes a week and<br> > feel totally confident they are going to enjoy profits<br> beyond > their wildest dreams, year after year.<br> <br> Buy low, sell high. > Now it's <b>EASY</b>.<br> <br> > <font color="#FF0000"><b>Listen to this 7-minute overview NOW!<br> > </b></font><br> > </font><A > href="http://PlayAudio-123.com/play.asp?m=59607&f=JOLOTE&ps=7&p=1"><FONT > > face="Arial Black" size=4>Play Audio Message</font></a><font > face="Arial" size="3"><br> <br> If you have never experienced the > <b>ENORMOUS </b>flood of<br> <b>INC0ME</b> that can come from the > Perpetual Leverage<br> compensation plan, you have an AWESOME > surprise<br> coming!<br> > <br> > Join us, and you will soon find 500-900 dollar<br> > commissions arriving from directions you never<br> > even knew existed! <b>DAILY PAY!!</b><br> > <br> > On the way to true freedom,<br> > <br> > Robert Valenzo<br> > TX<br> > 1-888-443-8892<br> > <BR>http://HotStockPro.com/ss00080<br> > <br> > <b>P.S. Here's the live call schedule. Make these calls<br> > a high priority--your FUTURE can change dramatically!<br> > Dial in early to be certain of getting a seat!<br> > </b></font><br> > <font face="Arial" size="3"> > <b><font color="#FF0000">646-519-5860 PIN 1367#</font></b> > </font></p> > <p><b><font face="Arial" size="3">Monday - Tuesday</font></b><font > face="Arial" size="3"><br> > Eastern......5:00 PM<br> > Central.......4:00 PM<br> > Mountain....3:00 PM<br> > Pacific........2:00 PM<br> > Alaska........1:00 PM<br> > Hawaii......12:00 PM<br> > <br> > <b>Wednesday - Thursday</b><br> > Eastern......8:30 PM<br> > Central.......7:30 PM<br> > Mountain....6:30 PM<br> > Pacific........5:30 PM<br> > Alaska........4:30 PM<br> > Hawaii........3:30 PM<br> > <br> > </font><font face="Arial" size="4" color="#FF0000"><b>24 Hour Hotline > Opportunity Call at 1-971-221-1162</b></font> > </p> > <P><FONT face="Arial Black" size=4>Reviewed and Praised by:</font></p> > <TABLE height=92 width=468 border=0> > <TBODY> > <TR> > <TD width=264 height=86><IMG height=35 alt="" > src="http://www.hotstockpro.com/images/media_barrons.gif" width=150 > border=0><IMG height=39 alt="" > src="http://www.hotstockpro.com/images/media_bloomberg.gif" width=150 > border=0><IMG height=32 alt="" > src="http://www.hotstockpro.com/images/media_businessjournal.gif" > width=150 > border=0><IMG height=57 alt="" > src="http://www.hotstockpro.com/images/media_cbs.gif" width=150 > border=0><IMG > height=66 alt="" src="http://www.hotstockpro.com/images/media_cnbc.gif" > width=150 border=0><BR><IMG height=52 alt="" > src="http://www.hotstockpro.com/images/media_excite.gif" width=100 > border=0><BR><IMG height=48 alt="" > src="http://www.hotstockpro.com/images/media_forbes.gif" width=150 > border=0><BR><IMG height=98 alt="" > src="http://www.hotstockpro.com/images/media_forbesbest.gif" width=77 > border=0><BR><IMG height=31 alt="" > src="http://www.hotstockpro.com/images/media_investormag.gif" width=150 > border=0></td> > <TD width=188 height=86><BR><IMG height=29 alt="" > src="http://www.hotstockpro.com/images/media_moenycom.gif" width=150 > border=0><BR><IMG height=48 alt="" > src="http://www.hotstockpro.com/images/media_money.gif" width=150 > border=0><BR><IMG height=93 alt="" > src="http://www.hotstockpro.com/images/media_moneymachine.gif" width=93 > border=0><BR><IMG height=34 alt="" > src="http://www.hotstockpro.com/images/media_onlineinvestor.gif" > width=150 > border=0><BR><IMG height=26 alt="" > src="http://www.hotstockpro.com/images/media_phlinquirer.gif" width=150 > border=0><BR><IMG height=29 alt="" > src="http://www.hotstockpro.com/images/media_thestreet.gif" width=150 > border=0><BR><IMG height=39 alt="" > src="http://www.hotstockpro.com/images/media_tipworld.gif" width=150 > border=0><BR><IMG height=50 alt="" > src="http://www.hotstockpro.com/images/media_usnews.gif" width=150 > border=0><BR><IMG height=57 alt="" > src="http://www.hotstockpro.com/images/media_webguide.gif" width=100 > border=0><BR><IMG height=15 alt="" > src="http://www.hotstockpro.com/images/media_wsj.gif" width=150 > border=0><BR><IMG height=38 alt="" > src="http://www.hotstockpro.com/images/media_yahoo.gif" width=100 > border=0></td></tr></tbody></table> > <div> > <font face="Arial Narrow" color="#808080" size="2">Notice: Past > performance is > not necessarily indicative of the future performance of the iDayo > Indicator.</font> </div> <div> > <font face="Arial Narrow" color="#808080" size="2">These postings and > any > other information provided on our web sites or through any other > communication</font> </div> <div> > <font face="Arial Narrow" color="#808080" size="2">does not constitute > a > recommendation to buy or sell stocks or any other investment. > Investing > involves</font> > </div> > <div> > <font face="Arial Narrow" color="#808080" size="2">the risk of loss > and > readers are urged to consult with their own independent financial > advisors<br> > <br> > </font> > </div> > <div style="WIDTH: 672px; HEIGHT: 19px"> > <font color="#ff0000">======= YOUR SUBSCRIPTION INFORMATION > =======</font> </div> <div> > <font color="#ff0000">Date you subscribed: 2/22/2004 09:14:38</font> > </div> > <div> > <font color="#ff0000">Your Name: </font> > </div> > <div> > <font color="#ff0000">Your E-Mail Address: [EMAIL PROTECTED]<br> > Your address:<br> > Your city: <br> > Your state: </font> > </div> > <div> > <font color="#ff0000">Your Phone Number: **********<br> > From IP address: (239.116.102.182)</font> > </div> > <div> > </div> > <div> > <font > color="#ff0000">==============================================</font> > </div> > <p><br> > </p> > > </body> > > </html> > <pre><center><a > href="http://IncomeBuddy.com/u.php?i=ODQ1MzQ1MQ=="><img > src="http://IncomeBuddy.com/images/u.gif" border="0" width="250" > height="85"></a><BR><a > href="http://IncomeBuddy.com/u.php?i=ODQ1MzQ1MQ==">http://IncomeBuddy.co > m/u.php?i=ODQ1MzQ1MQ==</a></center> > > Robert Valenzo > 1150 N Loop 1604 Ste 108-434 > San Antonio, TX 78248 > > </pre> > > > --------=_NextPart_db748b79149261781f771d056139cea3-- > ---------------------------------------------------------------------- > -- > --------------------------------- > > _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users