diff options
-rw-r--r-- | CHANGELOG | 6 | ||||
-rw-r--r-- | FAQ | 7 | ||||
-rw-r--r-- | MANIFEST | 1 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | TODO | 8 | ||||
-rwxr-xr-x | archivemail.py | 9 | ||||
-rwxr-xr-x | setup.py | 2 |
7 files changed, 26 insertions, 9 deletions
@@ -1,3 +1,9 @@ +Version 0.4.9 - 18 August 2002 + * Fixed a bug where an exception was thrown if a message was dated exactly + on the Unix epoch. + * Fixed a bug where trailing slashes on the end of maildir/MH mailbox + arguments were being used in the archive name. + Version 0.4.8 - 20 May 2002 * Call mkdir() to create a container directory in which we can place any created tempfiles @@ -0,0 +1,7 @@ + +1. Why doesn't archivemail support bzip2 compression in addition to gzip? +------------------------------------------------------------------------- + +I am quite happy to add bzip2 support to archivemail as soon as a 'bzip2' +module (similar to the gzip module) is available for python. +[ Hint hint ;) ] @@ -1,5 +1,6 @@ CHANGELOG COPYING +FAQ MANIFEST README TODO @@ -1,5 +1,5 @@ -VERSION=0.4.8 +VERSION=0.4.9 VERSION_TAG=v$(subst .,_,$(VERSION)) TARFILE=archivemail-$(VERSION).tar.gz @@ -1,15 +1,13 @@ -Goals for next minor release (0.4.9): +Goals for next minor release (0.5.0): ------------------------------------- -* When you get a file-not-found in the 6th mailbox of 10, it aborts +* When you get a file-not-found in the 6th mailbox of 10, it aborts the whole + run. Better to fail gracefully and keep going. * Think about the best way to specify the names of archives created with possibly an --archive-name option. * Add more tests (see top of test_archivemail.py) * We need some better checking to see if we are really looking at a valid mbox-format mailbox. - -Goals for next major release (0.5.0): -------------------------------------- * Lock any original .gz files - is this necessary? * Check for symlink attacks for tempfiles (although we don't use /var/tmp) diff --git a/archivemail.py b/archivemail.py index d82892e..a9c882a 100755 --- a/archivemail.py +++ b/archivemail.py @@ -22,7 +22,7 @@ Website: http://archivemail.sourceforge.net/ """ # global administrivia -__version__ = "archivemail v0.4.8" +__version__ = "archivemail v0.4.9" __cvs_id__ = "$Id$" __copyright__ = """Copyright (C) 2002 Paul Rodger <paul@paulrodger.com> This is free software; see the source for copying conditions. There is NO @@ -679,7 +679,6 @@ def guess_delivery_time(message): date = message.getdate(header) if date: time_message = time.mktime(date) - assert(time_message) vprint("using valid time found from '%s' header" % header) return time_message except (IndexError, ValueError, OverflowError): pass @@ -915,6 +914,12 @@ def archive(mailbox_name): """ assert(mailbox_name) + # strip any trailing slash (we could be archiving a maildir or MH format + # mailbox and somebody was pressing <tab> in bash) - we don't want to use + # the trailing slash in the archive name + mailbox_name = re.sub("/$", "", mailbox_name) + assert(mailbox_name) + set_signal_handlers() os.umask(077) # saves setting permissions on mailboxes/tempfiles @@ -19,7 +19,7 @@ check_python_version() # define & run this early - 'distutils.core' is new from distutils.core import setup setup(name="archivemail", - version="0.4.8", + version="0.4.9", description="archive and compress old email", license="GNU GPL", url="http://archivemail.sourceforge.net/", |