aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/trac/files/patch-Notify.py
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/trac/files/patch-Notify.py')
-rw-r--r--japanese/trac/files/patch-Notify.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/japanese/trac/files/patch-Notify.py b/japanese/trac/files/patch-Notify.py
index 56ea29d2cf0..b05ecfdc183 100644
--- a/japanese/trac/files/patch-Notify.py
+++ b/japanese/trac/files/patch-Notify.py
@@ -15,8 +15,8 @@
- msg = MIMEMultipart()
- msg.attach(MIMEText(body, 'plain', 'utf-8'))
- msg.epilogue = ''
-+ body_esc = string.replace(unicode(body, 'utf-8'), u'\uff5e', u'\u301c')
-+ body = body_esc.encode('japanese.c.iso-2022-jp')
++ body_esc = string.replace(unicode(body, 'utf-8'), u'\uff5e', u'\u301c')
++ body = body_esc.encode('japanese.c.iso-2022-jp')
+ msg = MIMEText(body, 'plain', 'iso-2022-jp')
msg['X-Mailer'] = 'Trac %s, by Edgewall Software' % __version__
msg['X-Trac-Version'] = __version__
@@ -24,9 +24,9 @@
msg['X-Trac-Project'] = projname
msg['X-URL'] = self.config.get('project','url')
- msg['Subject'] = Header(self.subject, 'utf-8')
-+ subj = unicode(self.subject, 'utf-8')
-+ subj_esc = string.replace(subj, u'\uff5e', u'\u301c')
-+ msg['Subject'] = Header(subj_esc.encode('japanese.c.iso-2022-jp'), 'iso-2022-jp')
++ subj = unicode(self.subject, 'utf-8')
++ subj_esc = string.replace(subj, u'\uff5e', u'\u301c')
++ msg['Subject'] = Header(subj_esc.encode('japanese.c.iso-2022-jp'), 'iso-2022-jp')
msg['From'] = '%s <%s>' % (projname, self.from_email)
msg['Sender'] = self.from_email
msg['Reply-To'] = self.replyto_email