Index: Lib/email/test/data/msg_44.txt =================================================================== --- Lib/email/test/data/msg_44.txt (revision 75282) +++ Lib/email/test/data/msg_44.txt (working copy) @@ -16,16 +16,14 @@ --h90VIIIKmx -Content-Type: text/plain -Content-Disposition: inline; name="msg.txt" +Content-Type: text/plain; name="msg.txt" Content-Transfer-Encoding: 7bit a simple kind of mirror to reflect upon our own --h90VIIIKmx -Content-Type: text/plain -Content-Disposition: inline; name="msg.txt" +Content-Type: text/plain; name="msg.txt" Content-Transfer-Encoding: 7bit a simple kind of mirror Index: Lib/email/message.py =================================================================== --- Lib/email/message.py (revision 75282) +++ Lib/email/message.py (working copy) @@ -674,7 +674,7 @@ missing = object() filename = self.get_param('filename', missing, 'content-disposition') if filename is missing: - filename = self.get_param('name', missing, 'content-disposition') + filename = self.get_param('name', missing, 'content-type') if filename is missing: return failobj return utils.collapse_rfc2231_value(filename).strip()