Changeset 340
- Timestamp:
- 03/24/10 15:21:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/email2trac.py.in
r339 r340 805 805 806 806 if self.VERSION == 0.9: 807 error_with_attachments = self.attach ments(message_parts, True)808 else: 809 error_with_attachments = self.attach ments(message_parts)807 error_with_attachments = self.attach_attachments(message_parts, True) 808 else: 809 error_with_attachments = self.attach_attachments(message_parts) 810 810 811 811 if self.notification and not spam: … … 961 961 ## Save the attachments to the ticket 962 962 # 963 error_with_attachments = self.attach ments(message_parts)963 error_with_attachments = self.attach_attachments(message_parts) 964 964 965 965 if error_with_attachments: … … 1241 1241 # 1242 1242 1243 def inline_part(self, part): 1244 """ 1245 """ 1246 if self.VERBOSE: 1247 print "VB: inline_part()" 1248 1249 return part.get_param('inline', None, 'Content-Disposition') == '' or not part.has_key('Content-Disposition') 1243 1250 1244 1251 def get_message_parts(self, msg): … … 1427 1434 return renamed_parts 1428 1435 1429 def inline_part(self, part):1430 return part.get_param('inline', None, 'Content-Disposition') == '' or not part.has_key('Content-Disposition')1431 1432 1436 1433 1437 def attachment_exists(self, filename): … … 1532 1536 return s 1533 1537 1534 def attach ments(self, message_parts, update=False):1538 def attach_attachments(self, message_parts, update=False): 1535 1539 ''' 1536 1540 save any attachments as files in the ticket's directory 1537 1541 ''' 1542 if self.VERBOSE: 1543 print "VB: attach_attachments()" 1544 1538 1545 if self.DRY_RUN: 1539 print "DRY_RUN: no attachments saved"1546 print "DRY_RUN: no attachments attached to tickets" 1540 1547 return '' 1541 1548
Note: See TracChangeset
for help on using the changeset viewer.