equal
deleted
inserted
replaced
1775 ui.debug('Subject: %s\n' % message) |
1775 ui.debug('Subject: %s\n' % message) |
1776 user = msg['From'] |
1776 user = msg['From'] |
1777 if user: |
1777 if user: |
1778 ui.debug('From: %s\n' % user) |
1778 ui.debug('From: %s\n' % user) |
1779 diffs_seen = 0 |
1779 diffs_seen = 0 |
1780 ok_types = ('application/x-patch', 'text/plain', 'text/x-patch') |
1780 ok_types = ('text/plain', 'text/x-diff', 'text/x-patch') |
1781 for part in msg.walk(): |
1781 for part in msg.walk(): |
1782 content_type = part.get_content_type() |
1782 content_type = part.get_content_type() |
1783 ui.debug('Content-Type: %s\n' % content_type) |
1783 ui.debug('Content-Type: %s\n' % content_type) |
1784 if content_type not in ok_types: |
1784 if content_type not in ok_types: |
1785 continue |
1785 continue |