Modify

Opened 9 years ago

Closed 8 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 9 years ago by Steve Romanow

Owner: changed from Robert Corsaro to Steve Romanow

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

comment:2 Changed 8 years ago by anonymous

Should implement something like trac/notification.py lines 198-221 r7593

comment:3 Changed 8 years ago by Robert Corsaro

Resolution: fixed
Status: newclosed

fixed in r4927

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Steve Romanow.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.