Menu

#207 UnicodeError in site-packages\email\Header.py

closed-fixed
pop3proxy (138)
5
2003-08-06
2003-08-05
No

Got a
X-Spambayes-Exception: exceptions.UnicodeError(ASCII
decoding error: ordinal
not in range(128)) in append() at
C:\Python22\lib\site-packages\email\Header.py
line
230: ustr = unicode(s, incodec)

while getting a piece of spam via pop3proxy

Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit
(Intel)] on win32

Discussion

  • Wolfgang Strobl

    Wolfgang Strobl - 2003-08-06

    Logged In: YES
    user_id=311771

    same with python23:
    -Spambayes-Exception: exceptions.UnicodeDecodeError('ascii'
    codec can't
    decode byte 0xd6 in position 24: ordinal not in range
    (128))
    in append() at c:\python23\lib\email\Header.py line
    272: ustr
    = unicode(s, incodec, errors)

     
  • Wolfgang Strobl

    Wolfgang Strobl - 2003-08-06
    • labels: --> pop3proxy
     
  • Ari Sundholm

    Ari Sundholm - 2003-08-06

    Logged In: YES
    user_id=198924

    I got this, too when using pop3proxy (spambayes 1.0a4). It is
    printed in the headers instead of spam rating (as it should;
    I've read other reports here - good that this works), causing
    occasionally some spam messages get through. This would be
    nice to be fixed - maybe a bit more tolerance to the unicode
    function(s)? I know these can be a pain in the..erm...backside
    since I'm working with Unicode support myself.

    The funny thing about this is that when I look at the Web
    interface of pop3proxy and use the Review function to train
    the filter, the email is correctly classified as spam and it can
    be trained w/o any errors along with the other ones as such.

    Best regards,
    Ari Sundholm
    megari at freedb.org
    freedb core team

     
  • Richie Hindle

    Richie Hindle - 2003-08-06
    • assigned_to: nobody --> richiehindle
    • status: open --> closed-fixed
     
  • Richie Hindle

    Richie Hindle - 2003-08-06

    Logged In: YES
    user_id=85414

    This is already fixed in CVS.

     

Log in to post a comment.

MongoDB Logo MongoDB