Modify ↓
Opened 16 years ago
Closed 16 years ago
#3929 closed defect (fixed)
subject unicode error in email_distributor
Reported by: | anonymous | Owned by: | Steve Romanow |
---|---|---|---|
Priority: | normal | Component: | AnnouncerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
while create mails next error's occurs:
2008-10-17 12:45:54,970 Trac[__init__] ERROR: AnnouncementSystem failed. Traceback (most recent call last): File "build/bdist.linux-i686/egg/announcerplugin/api.py", line 377, in _real_send File "build/bdist.linux-i686/egg/announcerplugin/distributors/email_distributor.py", line 195, in distribute File "build/bdist.linux-i686/egg/announcerplugin/distributors/email_distributor.py", line 250, in _do_send File "email/Header.py", line 161, in __init__ File "email/Charset.py", line 190, in __init__ TypeError: decoding Unicode is not supported
possibly because of unicode symbols in subject of mail.
possibly fix :change string in email_distributor.py
250 rootMessage['Subject'] = Header(subject, charset)
to
250 rootMessage['Subject'] = Header(subject, str(charset))
like in #3870
Attachments (0)
Change History (3)
comment:1 Changed 16 years ago by
Owner: | changed from Robert Corsaro to Steve Romanow |
---|
comment:2 Changed 16 years ago by
Should implement something like trac/notification.py lines 198-221 r7593
Note: See
TracTickets for help on using
tickets.
doki_pen, I do not see any reason why what worked for #3870 would not be precedent enough to use here. This will resolve #3843 as well. I am going to proceed that direction to get this committed.
slestak