Lost-Photos-Found icon indicating copy to clipboard operation
Lost-Photos-Found copied to clipboard

Exception: UnicodeDecodeError: 'utf8' codec can't decode byte 0xa5 in position 61: invalid start byte

Open eparra opened this issue 10 years ago • 4 comments

I am experiencing:

36:50.029921 < EIKI357 OK Success LOG: [decoded header] '"=?UTF-8?B?SGlwUmVjYWxsTGVnYWxDZW50ZXI=?=" sjjqcqkdemwrofnunbxu.kgsrifihuehqymgrvkdh@Dzyx7kUD-KA6q8WL5.84c.TCCdE.6WybftW39.Mj4J45w.aeokeyst.com' Traceback (most recent call last): File "./lpf.py", line 22, in imap.lostphotosfound() File "/Users/eparra/Downloads/Lost-Photos-Found-master/lostphotosfound/server.py", line 234, in lostphotosfound header_subject = _charset_decoder(mail['Subject']) File "/Users/eparra/Downloads/Lost-Photos-Found-master/lostphotosfound/utils.py", line 42, in _charset_decoder header = header[0][0].decode(header[0][1]).encode('utf-8') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xa5 in position 61: invalid start byte

eparra avatar Nov 03 '14 14:11 eparra

Eddie, would you forward this particular e-mail to my Gmail so I can work on it? My e-mail is 'caio1982'. The log is cryptic but I suppose the decoded header can help you search it on Gmail?

caiobegotti avatar Nov 03 '14 15:11 caiobegotti

Email sent. The email was unfiltered spam that was in my inbox.

eparra avatar Nov 03 '14 15:11 eparra

I just sent you a second email with the same exception.

eparra avatar Nov 03 '14 19:11 eparra

I had a similar problem caused by parts in a multi-part message having different encodings. Commit 6b07fe6 should provide a workaround for this problem.

cmatsuoka avatar Nov 25 '16 14:11 cmatsuoka