355 |
# (cg) It seems that From: names (or perhaps Subject: headers) that contain |
# (cg) It seems that From: names (or perhaps Subject: headers) that contain |
356 |
# a UTF8 character before the first space confuse the older python Header() |
# a UTF8 character before the first space confuse the older python Header() |
357 |
# class. This does not appear to be needed in newer python versions, but |
# class. This does not appear to be needed in newer python versions, but |
358 |
# this little workaround seems to help on 2.7.1 on valstar mga1. |
# this little workaround seems to help on 2.7.1 on valstar mga1. mga#12374 |
359 |
try: |
try: |
360 |
unicode(text) |
unicode(text) |
361 |
except UnicodeDecodeError: |
except UnicodeDecodeError: |