Changeset 642 for trunk/email2trac.py.in


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.