summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/mailbox.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
index 3c758ff..108967d 100755
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -255,7 +255,8 @@ def _test():
if msg is None:
break
msgs.append(msg)
- msg.fp = None
+ if len(args) <= 1:
+ msg.fp = None
if len(args) > 1:
num = string.atoi(args[1])
print 'Message %d body:'%num