Changeset 92 for emailtotracscript/trunk
- Timestamp:
- 07/06/06 12:13:43 (18 years ago)
- Location:
- emailtotracscript/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
emailtotracscript/trunk/ChangeLog
r91 r92 1 2006- 1 2006-07-06 2 2 - Fixed an error in already added attachments. Do not close 3 3 the database connection. … … 29 29 - Fixed an encoding problem when email_header is set to 1 30 30 Fixed by: Bas van der Vlies 31 32 - Fixed a bug in to_unicode() function. 33 Fixed by: Bas van der Vlies 34 35 - Fixed an unicodedata.normalize TypeError bug for filenames in the 36 attachment function 37 Fixed by: Bas van der Vlies 38 31 39 32 40 2006-06-02 -
emailtotracscript/trunk/INSTALL
r87 r92 22 22 email_header: 1 # OPTIONAL, if set then show TO/CC fields in description 23 23 trac_version: 0.8 # OPTIONAL, if set use this as trac version (D: 0.9) 24 enable_syslog: 1 # OPTIONAL, if set log errors to syslog 24 enable_syslog: 1 # OPTIONAL, if set log errors to syslog, note errors are not 25 mailed back to the reporter. 25 26 26 27 [bas] # OPTIONAL project declaration, also set -
emailtotracscript/trunk/debian/changelog
r91 r92 1 email2trac (0.7.3-7) stable; urgency=low 2 3 * removed some unicode data conversions 4 5 -- root <root@subtrac.sara.nl> Thu, 6 Jul 2006 09:04:35 +0200 6 1 7 email2trac (0.7.3-6) stable; urgency=low 2 8 -
emailtotracscript/trunk/email2trac.conf
r87 r92 6 6 reply_address: 1 7 7 reply_all : 1 8 mailto_link: 18 mailto_link: 0 9 9 umask: 022 10 10 email_comment: > 11 email_header: 111 email_header: 0 12 12 trac_version: 0.9 13 13 enable_syslog : 0 -
emailtotracscript/trunk/email2trac.py.in
r91 r92 198 198 else: 199 199 temp = string.strip(text) 200 temp = unicode(text, 'iso-8859-15') 200 201 201 202 if str: … … 408 409 if self.EMAIL_HEADER > 0: 409 410 head = self.email_header_txt(msg) 410 411 411 412 412 413 body_text = self.get_body_text(msg) … … 416 417 # field of a ticket 417 418 # 418 tkt['description'] = u'email2trac:%s\r\n{{{\r\n%s\r\n}}}' \419 tkt['description'] = 'email2trac:%s\r\n{{{\r\n%s\r\n}}}' \ 419 420 %(head, body_text) 420 421 … … 432 433 if self.MAILTO: 433 434 mailto = self.html_mailto_link(self.to_unicode(msg['subject']), ticket_id, body_text) 434 tkt['description'] = u'email2trac:%s%s\r\n{{{\r\n%s\r\n}}}' %(head, mailto, body_text)435 tkt['description'] = 'email2trac:%s%s\r\n{{{\r\n%s\r\n}}}' %(head, mailto, body_text) 435 436 comment = '\nadded mailto line\n' 436 437 changed = True … … 608 609 # We try to normalize the filename to utf-8 NFC if we can. 609 610 # Files uploaded from OS X might be in NFD. 611 # Check python version and then try it 610 612 # 611 613 if sys.version_info[0] > 2 or (sys.version_info[0] == 2 and sys.version_info[1] >= 3): 612 filename = unicodedata.normalize('NFC', unicode(filename, 'utf-8')).encode('utf-8') 614 try: 615 filename = unicodedata.normalize('NFC', unicode(filename, 'utf-8')).encode('utf-8') 616 except TypeError: 617 pass 613 618 614 619 url_filename = urllib.quote(filename)
Note: See TracChangeset
for help on using the changeset viewer.