Changeset 642


Ignore:
Timestamp:
09/20/13 11:47:09 (7 years ago)
Author:
bas
Message:

fixed a bug in attaching attachmentents with a unicode characters, see #327

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r641 r642  
    1818  * Added a new option cc_black_list. When an CC-address is in this list. It wil not
    1919    be put in the ticket CC-field.
     20    Author: Bas van der Vlies
     21
     22  * Fixed a bug with attachment filenames that contain unicode filenames, closes #327
     23    Reported by: ivanelsonnunes add gmail dot com
    2024    Author: Bas van der Vlies
    2125
  • trunk/debian/changelog

    r641 r642  
     1email2trac (2.7.6-1) stable; urgency=low
     2
     3  * See Changelog
     4
     5 -- Bas van der Vlies <bas.vandervlies@surfsara.nl>  Fri, 20 Sep 2013 11:45:29 +0200
     6
    17email2trac (2.7.5-1) stable; urgency=low
    28
  • trunk/email2trac.py.in

    r641 r642  
    18081808        ## Ticket id is in Delivered-To Field. Trac notify must send this
    18091809        #  eg: is+390@surfsara.nl
     1810       
     1811        ## Only run if this parameter is se
     1812        #
     1813        if not self.parameters.recipient_delimiter:
     1814            return False
     1815
    18101816        try:
    18111817
     
    21412147                    continue
    21422148
    2143             filename = part.get_filename()
     2149
     2150            #if self.VERSION < 1.0:
     2151            #    filename = part.get_filename()
     2152
     2153            ## convert 7 bit filename to 8 bit unicode
     2154            #
     2155            raw_filename = part.get_filename()
     2156            filename = self.email_to_unicode(filename);
     2157
    21442158            s = '\t unicode filename: %s' %(filename)
    21452159            self.print_unicode(s)
    21462160            self.logger.debug('\t raw filename: %s' %repr(filename))
    21472161
    2148             filename = self.check_filename_length(filename)
     2162            if self.VERSION < 1.0:
     2163                filename = self.check_filename_length(filename)
    21492164
    21502165            ## Save all non plain text message as attachment
Note: See TracChangeset for help on using the changeset viewer.