--- archivemail.orig Wed Mar 17 01:31:23 2004 +++ archivemail Wed Mar 17 01:46:48 2004 @@ -757,7 +757,7 @@ # files in the maildir 'cur' directory are no longer new, # they are the same as messages with 'Status: O' headers in mbox - (None, last_dir) = os.path.split(os.path.dirname(message.fp.name)) + (foo, last_dir) = os.path.split(os.path.dirname(message.fp.name)) if last_dir == "cur": status = status + "O"