Ignore:
Timestamp:
09/29/06 09:27:12 (18 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in:

  • Changed some layout statements

configure, Makefile.in, configure.in:

  • Can set DEBUG value on command line; eg: DEBUG=1 ./configure default is: 0
File:
1 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/email2trac.py.in

    r108 r109  
    353353
    354354                body_text = self.get_body_text(m)
    355                 body_text = '{{{\n%s\n}}}' %body_text
    356355
    357356                # Strip '#' and ':' from ticket_id
     
    425424                body_text = self.get_body_text(msg)
    426425
    427                 tkt['description'] = 'email2trac:%s\r\n{{{\r\n%s\r\n}}}' \
     426                tkt['description'] = 'email2trac:%s\r\n%s' \
    428427                        %(head, body_text)
    429428
     
    444443                        comment = '\nadded mailto line\n'
    445444                        mailto = self.html_mailto_link(self.to_unicode(msg['subject']), ticket_id, body_text)
    446                         tkt['description'] = 'email2trac:%s%s\r\n{{{\r\n%s\r\n}}}' %(head, mailto, body_text)
     445                        #tkt['description'] = 'email2trac:%s%s\r\n{{{\r\n%s\r\n}}}' %(head, mailto, body_text)
     446                        tkt['description'] = 'email2trac:%s%s\r\n%s' %(head, mailto, body_text)
    447447
    448448                n =  self.attachments(msg, tkt)
     
    497497                has_description = 0
    498498                encoding = True
    499                 ubody_text = u'\r\n{{{\nNo plain text message\n}}}\r\n'
     499                ubody_text = u'No plain text message'
    500500                for part in msg.walk():
    501501
     
    529529
    530530                        elif part.get_content_type() == 'text/html':
    531                                 ubody_text = '\r\n(see attachment for HTML mail message)\r\n'
     531                                ubody_text = '(see attachment for HTML mail message)'
    532532
    533533                        else:
    534                                 ubody_text = '\r\n(see attachment for message)\r\n'
     534                                ubody_text = '(see attachment for message)'
    535535
    536536                        has_description = 1
     
    538538
    539539                if not has_description:
    540                         ubody_text = '\r\n(see attachment for message)\r\n'
     540                        ubody_text = '(see attachment for message)'
    541541
    542542                # A patch so that the web-interface will not update the description
     
    551551                        ubody_text = ubody_text.encode('utf-8')
    552552
     553                ubody_text = '{{{\r\n%s\r\n}}}' %ubody_text
    553554                return ubody_text
    554555
Note: See TracChangeset for help on using the changeset viewer.