aboutsummaryrefslogtreecommitdiffstats
path: root/archivemail.py
diff options
context:
space:
mode:
authorPeter Poeml <poeml@suse.de>2006-04-25 21:13:53 +0000
committerPeter Poeml <poeml@suse.de>2006-04-25 21:13:53 +0000
commit05c599028ed0db8f64d0c46fd1d6ba8edccba6b2 (patch)
treebc21ad0ba3c51c43b539c1e21cdb22b468bd1735 /archivemail.py
parent64d87da3071c6c991e379c2c2221c264cb17fbdb (diff)
downloadarchivemail-05c599028ed0db8f64d0c46fd1d6ba8edccba6b2.tar.gz
archivemail-05c599028ed0db8f64d0c46fd1d6ba8edccba6b2.tar.bz2
archivemail-05c599028ed0db8f64d0c46fd1d6ba8edccba6b2.zip
fix SyntaxWarning: assignment to None (bug #843890)
Diffstat (limited to 'archivemail.py')
-rwxr-xr-xarchivemail.py2
1 files changed, 1 insertions, 1 deletions
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"