equal
deleted
inserted
replaced
1749 ui.debug('Subject: %s\n' % message) |
1749 ui.debug('Subject: %s\n' % message) |
1750 user = msg['From'] |
1750 user = msg['From'] |
1751 if user: |
1751 if user: |
1752 ui.debug('From: %s\n' % user) |
1752 ui.debug('From: %s\n' % user) |
1753 diffs_seen = 0 |
1753 diffs_seen = 0 |
1754 ok_types = ('text/plain', 'text/x-patch') |
1754 ok_types = ('application/x-patch', 'text/plain', 'text/x-patch') |
1755 for part in msg.walk(): |
1755 for part in msg.walk(): |
1756 content_type = part.get_content_type() |
1756 content_type = part.get_content_type() |
1757 ui.debug('Content-Type: %s\n' % content_type) |
1757 ui.debug('Content-Type: %s\n' % content_type) |
1758 if content_type not in ok_types: |
1758 if content_type not in ok_types: |
1759 continue |
1759 continue |