Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't run clean_up() by means of atexit, but use a plain finally clause in the | Nikolaus Schulz | 2006-10-29 | 1 | -40/+41 |
| | | | | | | main archive() function. This is simpler, and it works better with the testsuite calling archive() directly, where the atexit handler isn't triggered. | ||||
* | Preparing per-testcase cleanup: made StaleFiles.clean() remember what it | Nikolaus Schulz | 2006-10-29 | 1 | -4/+12 |
| | | | | | | | deleted, so it's idempotent and e.g. doesn't stomp over someone else's files if invoked twice and running as root. Currently I don't see how this could happen, but it will with a per-testcase cleanup. | ||||
* | Updated CHANGELOG. | Nikolaus Schulz | 2006-10-28 | 1 | -0/+36 |
| | |||||
* | Changelog: added entry for CRAM-MD5 login to the changelog of the latest | Nikolaus Schulz | 2006-10-28 | 1 | -0/+1 |
| | | | | | version 0.6.2. | ||||
* | Replaced all tempfile.mktemp() calls with mkstemp()/mkdtemp(). | Nikolaus Schulz | 2006-10-27 | 2 | -34/+32 |
| | | | | | | | 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. | ||||
* | Updated manpage: | Nikolaus Schulz | 2006-10-18 | 2 | -9/+11 |
| | | | | | From_ mangling is only done for messages from mailboxes not in mbox format. | ||||
* | Clarified comment about the python version required to run setup.py. | Nikolaus Schulz | 2006-10-18 | 1 | -1/+2 |
| | |||||
* | When writing messages to mboxes, append os.linesep and mangle From_ only if the | Nikolaus Schulz | 2006-10-18 | 1 | -3/+7 |
| | | | | | | | message source is not an mbox-format folder. Attempts to fix broken mbox-formatted input are only asking for trouble, and that's not our job anyway. | ||||
* | IMAPS and IMAP4.login_cram_md5() are new in Python 2.3; bump Python dependency | Nikolaus Schulz | 2006-10-14 | 1 | -4/+6 |
| | | | | | check to version 2.3. | ||||
* | Shorten credits. | Nikolaus Schulz | 2006-10-14 | 2 | -5/+3 |
| | |||||
* | Updated archivemail.__copyright__ | Nikolaus Schulz | 2006-10-14 | 1 | -1/+4 |
| | |||||
* | Extract $(VERSION) from setup.py. | Nikolaus Schulz | 2006-10-14 | 1 | -1/+1 |
| | |||||
* | Disabled bdist_rpm target, it chokes on the manpage. | Nikolaus Schulz | 2006-10-14 | 1 | -4/+5 |
| | |||||
* | Drop fakeroot from sdist rule. Not needed, Debian-specific. | Nikolaus Schulz | 2006-10-14 | 1 | -1/+1 |
| | |||||
* | Ported "tag" rule to svn, to the extent that's easily possible. | Nikolaus Schulz | 2006-10-14 | 1 | -2/+10 |
| | |||||
* | Forgot to commit updated troff manual. | Nikolaus Schulz | 2006-10-13 | 1 | -2/+4 |
| | |||||
* | Updated <Date/>, updated AUTHOR section. | Nikolaus Schulz | 2006-10-13 | 1 | -2/+4 |
| | |||||
* | Added maintainer entry in setup.py. | Nikolaus Schulz | 2006-10-12 | 3 | -1/+6 |
| | | | | | Updated copyright notices in archivemail.py and test_archivemail.py. | ||||
* | Added new option --dont-mangle-from to turn off From_ mangling. | Nikolaus Schulz | 2006-10-12 | 3 | -8/+37 |
| | |||||
* | Made From_ mangling work reliably with large messages, too. | Nikolaus Schulz | 2006-10-12 | 1 | -1/+6 |
| | |||||
* | Mangle From_ in message bodies. | Nikolaus Schulz | 2006-10-12 | 1 | -0/+5 |
| | |||||
* | Terminate each message in newly written mbox with an empty line. | Nikolaus Schulz | 2006-10-12 | 1 | -0/+1 |
| | |||||
* | Implemented --dry-run and --delete for IMAP, both do no not download messages. | Nikolaus Schulz | 2006-10-12 | 1 | -25/+25 |
| | | | | | Stats are still missing. | ||||
* | Preparing the implementation of IMAP --delete: | Nikolaus Schulz | 2006-10-11 | 1 | -8/+8 |
| | | | | | if not dry-running, delete messages whether we archived them or not. | ||||
* | Kindly shutdown IMAP connection when doing a --dry-run, too. | Nikolaus Schulz | 2006-10-11 | 1 | -2/+2 |
| | |||||
* | _archive_imap(): deleted unused variable. | Nikolaus Schulz | 2006-10-11 | 1 | -1/+0 |
| | |||||
* | Fixed invalid IMAP filter string for large messages (--size option). | Nikolaus Schulz | 2006-10-02 | 1 | -1/+1 |
| | | | | | Closes: #863813 | ||||
* | Removed trailing space from svn:ignore pattern. | Nikolaus Schulz | 2006-10-01 | 0 | -0/+0 |
| | |||||
* | 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. | ||||
* | Switched rule for archivemail.html to docbook-tools/docbook-utils. | Nikolaus Schulz | 2006-09-29 | 1 | -5/+1 |
| | | | | | | | Since we already run docbook2man, we build-depend on that package anyway, and the current, hand-crafted jade command fails on Debian systems (wrong path to stylesheet). | ||||
* | Added temporary files manpage.{links,refs} from docbook2man to svn:ignore. | Nikolaus Schulz | 2006-09-29 | 0 | -0/+0 |
| | |||||
* | Removed obsolete .cvsignore, svn:ignore ist set accordingly. | Nikolaus Schulz | 2006-09-29 | 1 | -5/+0 |
| | |||||
* | Updated description of the IMAP URL syntax: list the methods to specify the | Nikolaus Schulz | 2006-09-28 | 2 | -0/+10 |
| | | | | | password, document the IMAPS capability and its syntax. | ||||
* | Document new options --pwfile and --filter-append and their short counterparts | Nikolaus Schulz | 2006-09-28 | 2 | -2/+26 |
| | | | | | in the manual. | ||||
* | Fixed typo in description of IMAP URL syntax. | Nikolaus Schulz | 2006-09-28 | 2 | -3/+3 |
| | |||||
* | Convert on-the-wire CRLF to native EOL when saving messages from an IMAP ↵ | Nikolaus Schulz | 2006-09-28 | 1 | -1/+4 |
| | | | | folder. | ||||
* | Fixed IMAP authentication/URL parsing. Require username encoded in URL, but be | Nikolaus Schulz | 2006-09-28 | 1 | -6/+7 |
| | | | | | | flexible with the password: handle both --pwfile and URL-encoded password, and fallback to querying the user if neither is present. | ||||
* | Fixed guess_return_path() to actually extract 'Return-path' and 'From' headers. | Nikolaus Schulz | 2006-09-28 | 1 | -1/+1 |
| | |||||
* | Fixed long options --filter-append and --pwfile to accept their arguments. | Nikolaus Schulz | 2006-09-28 | 1 | -1/+1 |
| | |||||
* | check in the man page, so it doesn't need to be generated locally | Peter Poeml | 2006-06-27 | 1 | -0/+328 |
| | |||||
* | fix setup.py | Peter Poeml | 2006-06-27 | 1 | -1/+1 |
| | |||||
* | bump version to 0.6.2 | Peter Poeml | 2006-06-27 | 4 | -4/+12 |
| | |||||
* | new command line option: -F, --filter-append=STRING append arbitrary string ↵ | Peter Poeml | 2006-06-27 | 1 | -2/+9 |
| | | | | to the IMAP filter string | ||||
* | don't delete more than a certain number of messages at a time. The max ↵ | Peter Poeml | 2006-06-18 | 1 | -3/+8 |
| | | | | command len is limited. Fixes bug 942403 (Archiving large IMAP folders fails) | ||||
* | - fix last patch: don't fail if server URL doesn't contain username of ↵ | Peter Poeml | 2006-06-16 | 1 | -6/+4 |
| | | | | password; try plain as well as cram-md5 login |