Changeset 319 for trunk/email2trac.py.in
- Timestamp:
- 02/22/10 15:13:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/email2trac.py.in
r318 r319 927 927 ## Save the attachments to the ticket 928 928 # 929 has_attachments = self.attachments(message_parts) 930 931 # Disabled 932 #if has_attachments: 933 # changed = True 934 # comment = '%s\n%s\n' %(comment, has_attachments) 929 error_with_attachments = self.attachments(message_parts) 930 931 if error_with_attachments: 932 changed = True 933 comment = '%s\n%s\n' %(comment, error_with_attachments) 935 934 936 935 if changed: … … 1508 1507 # 1509 1508 max_size = int(self.get_config('attachment', 'max_size')) 1510 status = ''1509 status = None 1511 1510 1512 1511 for part in message_parts: … … 1564 1563 os.unlink(path) 1565 1564 1566 # Return how many attachments 1567 # 1568 status = 'This message has %d attachment(s)\n%s' %(count, status) 1565 ## return error 1566 # 1569 1567 return status 1570 1568
Note: See TracChangeset
for help on using the changeset viewer.