This closes SourceForge bug #117490.
# Qmail directory mailbox
def __init__(self, dirname):
- import string
self.dirname = dirname
# check for new mail
boxes += [os.path.join(curdir, f)
for f in os.listdir(curdir) if f[0] != '.']
+ self.boxes = boxes
+
def next(self):
if not self.boxes:
return None
def _test():
import time
import sys
- import string
import os
args = sys.argv[1:]
if len(args) <= 1:
msg.fp = None
if len(args) > 1:
- num = string.atoi(args[1])
+ num = int(args[1])
print 'Message %d body:'%num
msg = msgs[num-1]
msg.rewindbody()