Ticket #165: no_zero_attachment_comment.patch
File no_zero_attachment_comment.patch, 446 bytes (added by dereks@…, 14 years ago) |
---|
-
(a) email2trac-1.0 vs. (b) email2trac
a b 1451 1451 fd.close() 1452 1452 os.unlink(path) 1453 1453 1454 # Return how many attachments 1454 # Return how many attachments, if more than zero 1455 1455 # 1456 status = 'This message has %d attachment(s)\n%s' %(count, status) 1456 status = None 1457 if count > 0: status = 'This message has %d attachment(s)\n%s' %(count, status) 1457 1458 return status 1458 1459 1459 1460