'@type path: L{bytes}
@param path: The directory name for a maildir mailbox.'

def __init__(self, path):

    self.path = path
    self.list = []
    self.deleted = {}
    initializeMaildir(path)
    for name in ('cur', 'new'):
        for file in os.listdir(os.path.join(path, name)):
            self.list.append((file, os.path.join(path, name, file)))
    self.list.sort()
    self.list = [e[1] for e in self.list]
