1
0
Fork 0
mirror of https://git.code.sf.net/p/archivemail/code synced 2024-12-22 15:56:27 +00:00
Commit graph

354 commits

Author SHA1 Message Date
Paul Rodger
3c91240e66 Added info about test_archivemail.py 2002-04-29 12:25:15 +00:00
Paul Rodger
dcff0c0c85 Added a --size option to only archive messages over a certain byte size. 2002-04-29 12:20:45 +00:00
Paul Rodger
244c88d4b9 Added a lot more tests to test_archivemail.py. 2002-04-28 04:04:49 +00:00
Paul Rodger
15be93bd0d Fixed a bug where if you use the '--delete' option to completely clean
an mbox mailbox you would get a python error.
2002-04-28 04:00:11 +00:00
Paul Rodger
bc41b68389 Fixed a bug where the long --suffix option was not working (although the
short option, '-s' was).

Added time-based format directives to the --suffix option, so that you
can do things like specify --suffix='%B%Y' to create archives named
after the current month and year.

Added some more tests to test_archivemail.py
2002-04-27 06:08:45 +00:00
Paul Rodger
a9920b731d Point to the manpage a bit more. 2002-04-26 03:05:15 +00:00
Paul Rodger
9736dff04d Fixed bugs where archivemail would refuse to work on python version less than
2.2.
2002-04-26 03:04:02 +00:00
Paul Rodger
f1f2b97b1b Added another test, got ready for 0.4.2 release. 2002-04-24 13:22:11 +00:00
Paul Rodger
14d58baee1 Added a lot more system tests.
Hopefully I haven't gone too overboard with 957 lines of testing code for
a 1100 line program :)
2002-04-24 07:44:59 +00:00
Paul Rodger
a79e730127 Complain if the mailbox to be read does not look like a valid mbox-format
mailbox when it is a singular file.
2002-04-23 04:30:42 +00:00
Paul Rodger
2bfde528cd Added the ability to archive messages older than a given absolute date with
the new option '--date' and fixed a bug where archivemail would complain about
messages older than 1970.
2002-04-23 03:01:26 +00:00
Paul Rodger
623f3ba4be Getting ready for release of version 0.4.1 2002-04-21 01:14:54 +00:00
Paul Rodger
e07cdd7a2b Let's use the UnixMailbox class instead of PortableUnixMailbox to read
mbox messages. PortableUnixMailbox gets confused with messages that have
'From ' in the message body unquoted.
2002-04-20 11:52:51 +00:00
Paul Rodger
1bd93b6d08 Got ready for release of version 4.1 in a couple of days. 2002-04-19 07:12:49 +00:00
Paul Rodger
0cee3de4e7 Complain if an mbox file being read changes sizes. (Nobody should be writing
to these files - we have locked them)
2002-04-19 00:19:44 +00:00
Paul Rodger
04c22934f1 Fixed a bug where when archiving messages from maildir mailboxes, we were
not preserving the status information contained in the filename suffix to
Status and X-Status mbox headers. This means we forgot if we had read or
replied to the message.
2002-04-18 12:02:33 +00:00
Paul Rodger
80b2b99194 Made sure that we don't archive messages flagged important unless we are
given the --include-flagged option.
2002-04-17 13:15:04 +00:00
Paul Rodger
fd61a98c46 Grouped together tests more into their respective classes. 2002-04-17 13:13:36 +00:00
Paul Rodger
ee9757de78 Added an option '--no-compress' if you don't want gzipped archives.
Added an option '--preserve-unread' to always preserved (don't archive)
unread messages.
2002-04-17 06:26:31 +00:00
Paul Rodger
21193abf5e *** empty log message *** 2002-04-13 11:58:09 +00:00
Paul Rodger
ba5426db3f Added a lot more documentation, fixed up usage messages and expanded a lot
on the man page.
2002-04-13 11:36:32 +00:00
Paul Rodger
d7bd2d407c Got ready for release of v0.3.1 2002-04-12 14:59:13 +00:00
Paul Rodger
b7495cdcf0 Added manpage to install script. 2002-04-12 14:57:05 +00:00
Paul Rodger
0203bed0c4 Added docbook documentation from which we can generate a manpage. 2002-04-12 14:46:09 +00:00
Paul Rodger
5350fc26f6 We don't need this version. 2002-04-12 13:16:01 +00:00
Paul Rodger
9e534977ef Stopped calling gzip externally and started using the 'gzip' module
directly. Removed bzip2 and compress support since they were complicating
things and you don't really need them much anyway.
2002-04-12 05:31:59 +00:00
Paul Rodger
bd7e3c7225 Removed some trailing whitespace that was causing problems. 2002-04-11 10:48:05 +00:00
Paul Rodger
6a2a0077cf Added more meta-data. 2002-04-11 10:47:42 +00:00
Paul Rodger
7a20db7588 Fail more gracefully when running on python < v2.0 2002-04-11 10:31:07 +00:00
Paul Rodger
07ab0ae773 Getting ready for v0.3 release. 2002-04-11 10:23:16 +00:00
Paul Rodger
d27832f818 We now have 37 tests, including chmod() tests to make sure permissions
on original mbox mailboxes have been preserved.
2002-04-11 03:48:13 +00:00
Paul Rodger
314cb64484 Added a couple more (possibly stupid) tests and added docstrings for
all existing tests so it looks nicer when run verbosely.
2002-04-09 13:00:06 +00:00
Paul Rodger
29e21fddc0 Changed '_options' to 'options' since it makes more sense when using
archivemail from a library. Yeah, I know -- I'm a spoon.
2002-04-09 12:59:26 +00:00
Paul Rodger
35a9f14982 We now preserve the last-accessed and last-modified timestamps correctly.
Fixed a bug where lockfiles were being created that were not
world-readable.

Made archivemail work better when used as a python module so it can
integrate better with unittest.

Renamed unittest script 'test_archivemail' instead of 'archivemail_test'
and added about 20 more tests.
2002-04-08 13:39:03 +00:00
Paul Rodger
92e86986e5 Updated documentation and version number to reflect new version: 0.2.1 2002-04-04 11:19:29 +00:00
Paul Rodger
4ac9643118 Fixed a bug where if you ran: 'archivemail.py foo/mbox' it would create
the archive file in the current directory instead of the directory 'foo'.
2002-04-04 11:14:00 +00:00
Paul Rodger
81c82ddaf5 check to see if we are running as root -- if so, change our effective
userid and groupid to that of the owner of the original mailbox
2002-04-04 07:40:13 +00:00
Paul Rodger
1ed695b748 Since we might not have a parse-able 'Date-Received' or 'Date' field,
use 5 different ways to guess the date of a message.
2002-04-04 02:41:37 +00:00
Paul Rodger
8bc23385dc Remembered some more stuff to do. 2002-04-03 11:15:17 +00:00
Paul Rodger
16999ce35b Don't assume we will always have a Delivery-Date header when constructing
the 'From_' line from a 'maildir' folder. Use the 'Date' header when we
dont.
2002-04-03 11:12:25 +00:00
Paul Rodger
68b96c2120 Updated tasks to reflect release of version 0.2.0 2002-04-03 10:59:00 +00:00
Paul Rodger
842cda8a37 Complain if we are creating temporary files in world-writable
directories.
2002-04-03 10:51:26 +00:00
Paul Rodger
d212ae060e Added headings & heaps more todo points. 2002-04-02 13:49:29 +00:00
Paul Rodger
9cbc21d0b4 Added MH mailbox support, but we need a testing framework. 2002-04-02 13:39:11 +00:00
Paul Rodger
f90bd01a74 Added MH mailbox support. 2002-04-02 13:37:49 +00:00
Paul Rodger
57ed36ea53 Check the python version before we do an 'import atexit', because that
could fail on older versions.
2002-03-31 05:32:14 +00:00
Paul Rodger
17bb56d33c Complain earlier if the output directory does not exist. 2002-03-31 05:01:22 +00:00
Paul Rodger
2a67673c07 Added example cron script and more info. 2002-03-31 05:01:04 +00:00
Paul Rodger
23e6f58c91 Print a friendlier message when an uncompressed archive already exists.
Make maildir message deletion more robust.
2002-03-31 04:32:31 +00:00
Paul Rodger
3911a2f381 I was not honouring absolute 'output-dir' requests. Fixed. 2002-03-31 03:56:04 +00:00