Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | archivemail.py, setup.py, test_archivemail.py: | Nikolaus Schulz | 2007-11-07 | 1 | -1/+1 |
| | | | | | bumped version to 0.7.1, and updated copyright. | ||||
* | Added simple unittest for the --copy option. Mbox only. :-/ | Nikolaus Schulz | 2007-11-02 | 1 | -0/+96 |
| | |||||
* | Added unittest for the new IMAP URL parser. | Nikolaus Schulz | 2007-10-23 | 1 | -0/+77 |
| | |||||
* | Testsuite: fixed testDeleteOldMail to check the right option. | Nikolaus Schulz | 2006-10-30 | 1 | -1/+1 |
| | |||||
* | Testsuite: create temporary directory with prefix. | Nikolaus Schulz | 2006-10-29 | 1 | -2/+3 |
| | |||||
* | Dropped test from testsuite if dotlock file is world-readable, this isn't | Nikolaus Schulz | 2006-10-29 | 1 | -6/+0 |
| | | | | | required. | ||||
* | Replaced all tempfile.mktemp() calls with mkstemp()/mkdtemp(). | Nikolaus Schulz | 2006-10-27 | 1 | -29/+28 |
| | | | | | | | Should just serve as a last security fallback, since we operate in a safe temporary directory and everything should be okay anyway, but that may be less obvious. :-) | ||||
* | test_archivemail.py: fixed unsafe creation of temporary files. | Nikolaus Schulz | 2006-10-27 | 1 | -115/+85 |
| | | | | | | | | | | | | | | | | | Derive all testcases that create temporary files from the new class TestCaseInTempdir, which provides standard fixtures to set up a secure temporary root directory for tempfiles and cleaning up afterwards. This also simplifies the code. This addresses Debian bug #385253, and reading the BTS log, it seems this issue was assigned CVE-2006-4245, although I cannot find any further reference to that CVE. Note that the bug was initially reported to affect archivemail itself, too. This is not correct. There *are* race conditions with archivemail, but they were not subject of that report, and are not that critical. Also bumped python dependency to version 2.3 since we use tempfile.mkstemp() and other recent stuff. | ||||
* | test_archivemail.py: added two missing self.setUp() calls in the TestArchiveMbox | Nikolaus Schulz | 2006-10-27 | 1 | -0/+2 |
| | | | | | testcase. | ||||
* | test_archivemail.py: put standard setUp() fixtures in the testcases; the | Nikolaus Schulz | 2006-10-27 | 1 | -38/+61 |
| | | | | | | | matching tearDown() methods were already there. We surely can move more (possibly duplicated) stuff into the setUp() methods later. | ||||
* | test_archivemail.py: don't check for os.fork(), simply use it -- we're targeting | Nikolaus Schulz | 2006-10-27 | 1 | -2/+0 |
| | | | | | posix platforms only. | ||||
* | Fixed unittest TestMboxExclusiveLock: on some systems flock(2) is emulated with | Nikolaus Schulz | 2006-10-20 | 1 | -5/+38 |
| | | | | | | fcntl(2) calls. fcntl locks don't support interlocking within a process, so we need to fork() to correctly test them. | ||||
* | Added maintainer entry in setup.py. | Nikolaus Schulz | 2006-10-12 | 1 | -0/+1 |
| | | | | | Updated copyright notices in archivemail.py and test_archivemail.py. | ||||
* | Fixed unittest failure by updating --suffix testcase: archivemail used to expand | Nikolaus Schulz | 2006-10-01 | 1 | -2/+8 |
| | | | | | | date directives in the suffix to the current date, but rev. 94 changed that to the archive cut off date. Based on analysis by Peter Poeml. Thanks, Peter. | ||||
* | Removed a test rule that says we can confidently archive messages | Paul Rodger | 2002-10-30 | 1 | -4/+0 |
| | | | | | | older than the unix epoch. (New versions of python return OverFlow error instead) | ||||
* | We now call mkdir() to create a temporary directory to store any generated | Paul Rodger | 2002-05-20 | 1 | -37/+0 |
| | | | | | tempfiles. This should be a lot more secure. | ||||
* | Fixed a bug where archivemail would abort if it got a date header | Paul Rodger | 2002-05-07 | 1 | -0/+9 |
| | | | | | with a completely blank value. | ||||
* | Added a --size option to only archive messages over a certain byte size. | Paul Rodger | 2002-04-29 | 1 | -0/+69 |
| | |||||
* | Added a lot more tests to test_archivemail.py. | Paul Rodger | 2002-04-28 | 1 | -129/+442 |
| | |||||
* | Fixed a bug where the long --suffix option was not working (although the | Paul Rodger | 2002-04-27 | 1 | -203/+249 |
| | | | | | | | | | | | 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 | ||||
* | Fixed bugs where archivemail would refuse to work on python version less than | Paul Rodger | 2002-04-26 | 1 | -13/+17 |
| | | | | | 2.2. | ||||
* | Added another test, got ready for 0.4.2 release. | Paul Rodger | 2002-04-24 | 1 | -5/+18 |
| | |||||
* | Added a lot more system tests. | Paul Rodger | 2002-04-24 | 1 | -95/+265 |
| | | | | | | Hopefully I haven't gone too overboard with 957 lines of testing code for a 1100 line program :) | ||||
* | Added the ability to archive messages older than a given absolute date with | Paul Rodger | 2002-04-23 | 1 | -35/+125 |
| | | | | | | the new option '--date' and fixed a bug where archivemail would complain about messages older than 1970. | ||||
* | Got ready for release of version 4.1 in a couple of days. | Paul Rodger | 2002-04-19 | 1 | -2/+4 |
| | |||||
* | Grouped together tests more into their respective classes. | Paul Rodger | 2002-04-17 | 1 | -187/+99 |
| | |||||
* | Added an option '--no-compress' if you don't want gzipped archives. | Paul Rodger | 2002-04-17 | 1 | -11/+246 |
| | | | | | | Added an option '--preserve-unread' to always preserved (don't archive) unread messages. | ||||
* | Added docbook documentation from which we can generate a manpage. | Paul Rodger | 2002-04-12 | 1 | -3/+6 |
| | |||||
* | Stopped calling gzip externally and started using the 'gzip' module | Paul Rodger | 2002-04-12 | 1 | -73/+2 |
| | | | | | | directly. Removed bzip2 and compress support since they were complicating things and you don't really need them much anyway. | ||||
* | Getting ready for v0.3 release. | Paul Rodger | 2002-04-11 | 1 | -1/+10 |
| | |||||
* | We now have 37 tests, including chmod() tests to make sure permissions | Paul Rodger | 2002-04-11 | 1 | -66/+161 |
| | | | | | on original mbox mailboxes have been preserved. | ||||
* | Added a couple more (possibly stupid) tests and added docstrings for | Paul Rodger | 2002-04-09 | 1 | -28/+116 |
| | | | | | all existing tests so it looks nicer when run verbosely. | ||||
* | We now preserve the last-accessed and last-modified timestamps correctly. | Paul Rodger | 2002-04-08 | 1 | -0/+424 |
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. |