Edgewall Software

Ticket #1065: notify-utf.diff

File notify-utf.diff, 0.5 KB (added by otavio, 4 years ago)

Possible fix. Untested.

  • trac/Notify.py

     
    154154        msg['Reply-To'] = self.replyto_email 
    155155        msg['To'] = rcpt 
    156156        msg['Date'] = time.strftime('%a, %d %b %Y %H:%M:%S +0000', time.gmtime()); 
     157        msg['Content-type'] = 'text/plain; charset=utf-8' 
    157158        for hdr in mime_headers.keys(): 
    158159            msg[hdr] = mime_headers[hdr] 
    159160        self.server.sendmail(self.from_email, rcpt, msg.as_string())