Ticket #165: no_zero_attachment_comment.patch

File no_zero_attachment_comment.patch, 446 bytes (added by dereks@…, 14 years ago)

Patch to fix this bug

  • (a) email2trac-1.0 vs. (b) email2trac

    a b  
    14511451                        fd.close()
    14521452                        os.unlink(path)
    14531453
    1454                 # Return how many attachments
     1454                # Return how many attachments, if more than zero
    14551455                #
    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)
    14571458                return status
    14581459
    14591460