mercurial/commands.py
changeset 2743 a31f0f2997e9
parent 2741 ae5ce3454ef5
child 2755 6c2c10cedf7a
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1777,7 +1777,7 @@ def import_(ui, repo, patch1, *patches, 
             if user:
                 ui.debug('From: %s\n' % user)
             diffs_seen = 0
-            ok_types = ('application/x-patch', 'text/plain', 'text/x-patch')
+            ok_types = ('text/plain', 'text/x-diff', 'text/x-patch')
             for part in msg.walk():
                 content_type = part.get_content_type()
                 ui.debug('Content-Type: %s\n' % content_type)