From 05c599028ed0db8f64d0c46fd1d6ba8edccba6b2 Mon Sep 17 00:00:00 2001 From: Peter Poeml Date: Tue, 25 Apr 2006 21:13:53 +0000 Subject: fix SyntaxWarning: assignment to None (bug #843890) --- archivemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivemail.py b/archivemail.py index 87fc33b..8ac910d 100755 --- a/archivemail.py +++ b/archivemail.py @@ -757,7 +757,7 @@ def add_status_headers(message): # 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)) + last_dir = os.path.basename(os.path.dirname(message.fp.name)) if last_dir == "cur": status = status + "O" -- cgit v1.2.3