Ticket #171: inline_properties.diff
File inline_properties.diff, 1.1 KB (added by samuel@…, 14 years ago) |
---|
-
email2trac.py.in
a b 228 228 else: 229 229 self.STRIP_QUOTES = 0 230 230 231 if parameters.has_key('inline_properties'): 232 self.INLINE_PROPERTIES = int(parameters['inline_properties']) 233 else: 234 self.INLINE_PROPERTIES = 0 235 231 236 if parameters.has_key('use_textwrap'): 232 237 self.USE_TEXTWRAP = int(parameters['use_textwrap']) 233 238 else: … … 684 689 if update_fields: 685 690 self.update_ticket_fields(tkt, update_fields) 686 691 692 693 properties = self.inline_properties(m) 694 if self.INLINE_PROPERTIES: 695 if properties: 696 self.update_ticket_fields(tkt, properties) 697 687 698 message_parts = self.get_message_parts(m) 688 699 message_parts = self.unique_attachment_names(message_parts) 689 700 … … 692 703 693 704 body_text = self.body_text(message_parts) 694 705 695 if body_text.strip() or update_fields: 706 if body_text.strip() or update_fields or \ 707 (self.INLINE_PROPERTIES and properties): 696 708 if self.DRY_RUN: 697 709 print 'DRY_RUN: tkt.save_changes(self.author, comment) ', self.author 698 710 else: