Changeset 491 for trunk/email2trac.py.in


Ignore:
Timestamp:
12/10/10 15:57:26 (13 years ago)
Author:
bas
Message:

added some statement where we could convert html to text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r490 r491  
    19591959               
    19601960                for part in message_parts:
    1961 
     1961               
    19621962                        ## Plain text part, append it
    19631963                        #
     
    19691969                        (original, filename, part) = part
    19701970                        inline = self.inline_part(part)
     1971
     1972#                       if part.get_content_type() == 'text/html':
     1973#               
     1974#                               body_text.append('{{{\n')
     1975#                               body_text.append('#!html\n')
     1976#
     1977#                               ## Try to decode, if fails then do not decode
     1978#                               #
     1979#                               tmp  = part.get_payload(decode=1)
     1980#                               if not tmp:                     
     1981#                                       tmp = part.get_payload(decode=0)
     1982#                               
     1983#                               body_text.append(tmp)
     1984#                               body_text.append('}}}\n')
    19711985                       
    19721986                        if part.get_content_maintype() == 'image' and inline:
Note: See TracChangeset for help on using the changeset viewer.