aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Rodger <paul@paulrodger.com>2002-03-31 03:56:04 +0000
committerPaul Rodger <paul@paulrodger.com>2002-03-31 03:56:04 +0000
commit3911a2f3818dd6bef3ec48d9d0de684ba84a2d8a (patch)
treef4c14494e0514b3d7f22a657c4272a80df649106
parent4fdde09fc42972f40d6649dd822d2c43e75477fd (diff)
downloadarchivemail-3911a2f3818dd6bef3ec48d9d0de684ba84a2d8a.tar.gz
archivemail-3911a2f3818dd6bef3ec48d9d0de684ba84a2d8a.tar.bz2
archivemail-3911a2f3818dd6bef3ec48d9d0de684ba84a2d8a.zip
I was not honouring absolute 'output-dir' requests. Fixed.
-rwxr-xr-xarchivemail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archivemail.py b/archivemail.py
index 55f8a18..ee3998e 100755
--- a/archivemail.py
+++ b/archivemail.py
@@ -625,7 +625,7 @@ def archive(mailbox_name):
final_archive_name = mailbox_name + _options.archive_suffix
if _options.output_dir:
final_archive_name = os.path.join(_options.output_dir,
- final_archive_name)
+ os.path.basename(final_archive_name))
vprint("archiving '%s' to '%s' ..." % (mailbox_name, final_archive_name))
if os.path.islink(mailbox_name):