Opened 6 years ago

Closed 6 years ago

#3929 closed defect (fixed)

subject unicode error in email_distributor

Reported by: anonymous Owned by: slestak
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


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/", line 377, in _real_send
  File "build/bdist.linux-i686/egg/announcerplugin/distributors/", line 195, in distribute
  File "build/bdist.linux-i686/egg/announcerplugin/distributors/", line 250, in _do_send
  File "email/", line 161, in __init__
  File "email/", line 190, in __init__
TypeError: decoding Unicode is not supported

possibly because of unicode symbols in subject of mail.

possibly fix :change string in

250         rootMessage['Subject'] = Header(subject, charset)


250         rootMessage['Subject'] = Header(subject, str(charset))

like in #3870

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by slestak

  • Owner changed from doki_pen to slestak

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.


comment:2 Changed 6 years ago by anonymous

Should implement something like trac/ lines 198-221 r7593

comment:3 Changed 6 years ago by doki_pen

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r4927

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from slestak. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.