Fixed a bug where we would throw an exception if a message was dated

exactly on the unix epoch. Also fixed a bug where trailing slashes
were being passed to the archive file name.
This commit is contained in:
Paul Rodger 2002-08-18 12:17:56 +00:00
parent 604e11428f
commit 5264ab35cd
7 changed files with 26 additions and 9 deletions

View File

@ -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

7
FAQ Normal file
View File

@ -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 ;) ]

View File

@ -1,5 +1,6 @@
CHANGELOG
COPYING
FAQ
MANIFEST
README
TODO

View File

@ -1,5 +1,5 @@
VERSION=0.4.8
VERSION=0.4.9
VERSION_TAG=v$(subst .,_,$(VERSION))
TARFILE=archivemail-$(VERSION).tar.gz

8
TODO
View File

@ -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)

View File

@ -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

View File

@ -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/",