Nikolaus Schulz
697c22daac
Rewrote Mbox.procmail_lock() to fix locking race condition. Should now also be
...
NFS-safe.
2006-10-30 19:29:15 +00:00
Nikolaus Schulz
700bce69b4
Testsuite: fixed testDeleteOldMail to check the right option.
2006-10-30 18:25:28 +00:00
Nikolaus Schulz
daed56f0c5
TODO: added that currently all items are from the original author and still have
...
to be checked. :-)
2006-10-29 04:09:11 +00:00
Nikolaus Schulz
a8e76ead22
Testsuite: create temporary directory with prefix.
2006-10-29 04:05:37 +00:00
Nikolaus Schulz
93015a6d84
Dropped test from testsuite if dotlock file is world-readable, this isn't
...
required.
2006-10-29 03:59:57 +00:00
Nikolaus Schulz
99cfab1f4e
Don't run clean_up() by means of atexit, but use a plain finally clause in the
...
main archive() function. This is simpler, and it works better with the
testsuite calling archive() directly, where the atexit handler isn't triggered.
2006-10-29 03:10:45 +00:00
Nikolaus Schulz
2dbd3c1940
Preparing per-testcase cleanup: made StaleFiles.clean() remember what it
...
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.
2006-10-29 00:04:09 +00:00
Nikolaus Schulz
e78b33e115
Updated CHANGELOG.
2006-10-28 18:42:17 +00:00
Nikolaus Schulz
bd2f65d0af
Changelog: added entry for CRAM-MD5 login to the changelog of the latest
...
version 0.6.2.
2006-10-28 18:31:29 +00:00
Nikolaus Schulz
5eb4cf3cf6
Replaced all tempfile.mktemp() calls with mkstemp()/mkdtemp().
...
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. :-)
2006-10-27 03:23:16 +00:00
Nikolaus Schulz
e491da3a11
test_archivemail.py: fixed unsafe creation of temporary files.
...
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.
2006-10-27 02:12:45 +00:00
Nikolaus Schulz
0a666a10a6
test_archivemail.py: added two missing self.setUp() calls in the TestArchiveMbox
...
testcase.
2006-10-27 01:30:49 +00:00
Nikolaus Schulz
7ae1b7bb3f
test_archivemail.py: put standard setUp() fixtures in the testcases; the
...
matching tearDown() methods were already there.
We surely can move more (possibly duplicated) stuff into the setUp() methods
later.
2006-10-27 01:00:39 +00:00
Nikolaus Schulz
ee45d946ed
test_archivemail.py: don't check for os.fork(), simply use it -- we're targeting
...
posix platforms only.
2006-10-27 00:13:48 +00:00
Nikolaus Schulz
06d158c576
Fixed unittest TestMboxExclusiveLock: on some systems flock(2) is emulated with
...
fcntl(2) calls. fcntl locks don't support interlocking within a process, so we
need to fork() to correctly test them.
2006-10-20 22:50:38 +00:00
Nikolaus Schulz
157db85b7f
Updated manpage:
...
From_ mangling is only done for messages from mailboxes not in mbox format.
2006-10-18 23:06:29 +00:00
Nikolaus Schulz
39f1d23993
Clarified comment about the python version required to run setup.py.
2006-10-18 01:32:51 +00:00
Nikolaus Schulz
3c0939a3ef
When writing messages to mboxes, append os.linesep and mangle From_ only if the
...
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.
2006-10-18 01:20:05 +00:00
Nikolaus Schulz
f4c6017d32
IMAPS and IMAP4.login_cram_md5() are new in Python 2.3; bump Python dependency
...
check to version 2.3.
2006-10-14 23:22:25 +00:00
Nikolaus Schulz
ae5e5f63a1
Shorten credits.
2006-10-14 22:49:31 +00:00
Nikolaus Schulz
334d1ef9f1
Updated archivemail.__copyright__
2006-10-14 22:45:25 +00:00
Nikolaus Schulz
031c6aea7c
Extract $(VERSION) from setup.py.
2006-10-14 20:59:14 +00:00
Nikolaus Schulz
3354e35ec9
Disabled bdist_rpm target, it chokes on the manpage.
2006-10-14 20:57:29 +00:00
Nikolaus Schulz
a121b1c1d3
Drop fakeroot from sdist rule. Not needed, Debian-specific.
2006-10-14 20:30:14 +00:00
Nikolaus Schulz
eb2b4a64f9
Ported "tag" rule to svn, to the extent that's easily possible.
2006-10-14 19:37:08 +00:00
Nikolaus Schulz
4c04117de8
Forgot to commit updated troff manual.
2006-10-13 00:08:37 +00:00
Nikolaus Schulz
d0a209fa7a
Updated <Date/>, updated AUTHOR section.
2006-10-13 00:07:05 +00:00
Nikolaus Schulz
d631079250
Added maintainer entry in setup.py.
...
Updated copyright notices in archivemail.py and test_archivemail.py.
2006-10-12 23:02:03 +00:00
Nikolaus Schulz
b682b26398
Added new option --dont-mangle-from to turn off From_ mangling.
2006-10-12 21:14:04 +00:00
Nikolaus Schulz
6198341eef
Made From_ mangling work reliably with large messages, too.
2006-10-12 19:28:30 +00:00
Nikolaus Schulz
88ef628f20
Mangle From_ in message bodies.
2006-10-12 18:19:01 +00:00
Nikolaus Schulz
a0994e6a57
Terminate each message in newly written mbox with an empty line.
2006-10-12 17:35:37 +00:00
Nikolaus Schulz
539894ced4
Implemented --dry-run and --delete for IMAP, both do no not download messages.
...
Stats are still missing.
2006-10-12 01:02:35 +00:00
Nikolaus Schulz
800a957b59
Preparing the implementation of IMAP --delete:
...
if not dry-running, delete messages whether we archived them or not.
2006-10-11 19:56:50 +00:00
Nikolaus Schulz
27ca6547c5
Kindly shutdown IMAP connection when doing a --dry-run, too.
2006-10-11 19:28:36 +00:00
Nikolaus Schulz
b8b64804c9
_archive_imap(): deleted unused variable.
2006-10-11 19:18:43 +00:00
Nikolaus Schulz
ab28001c84
Fixed invalid IMAP filter string for large messages (--size option).
...
Closes : #863813
2006-10-02 00:22:58 +00:00
Nikolaus Schulz
931c2118f3
Removed trailing space from svn:ignore pattern.
2006-10-01 02:35:52 +00:00
Nikolaus Schulz
a6ff806d2a
Fixed unittest failure by updating --suffix testcase: archivemail used to expand
...
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.
2006-10-01 02:32:19 +00:00
Nikolaus Schulz
6895571d3b
Switched rule for archivemail.html to docbook-tools/docbook-utils.
...
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).
2006-09-29 23:14:10 +00:00
Nikolaus Schulz
a8fd65eb5a
Added temporary files manpage.{links,refs} from docbook2man to svn:ignore.
2006-09-29 00:53:17 +00:00
Nikolaus Schulz
f302156d41
Removed obsolete .cvsignore, svn:ignore ist set accordingly.
2006-09-29 00:31:54 +00:00
Nikolaus Schulz
874f325330
Updated description of the IMAP URL syntax: list the methods to specify the
...
password, document the IMAPS capability and its syntax.
2006-09-28 23:56:31 +00:00
Nikolaus Schulz
74922b1beb
Document new options --pwfile and --filter-append and their short counterparts
...
in the manual.
2006-09-28 23:49:45 +00:00
Nikolaus Schulz
dbe3c9ce4b
Fixed typo in description of IMAP URL syntax.
2006-09-28 23:43:50 +00:00
Nikolaus Schulz
140596178c
Convert on-the-wire CRLF to native EOL when saving messages from an IMAP folder.
2006-09-28 23:31:47 +00:00
Nikolaus Schulz
8d5b36dc3a
Fixed IMAP authentication/URL parsing. Require username encoded in URL, but be
...
flexible with the password: handle both --pwfile and URL-encoded password, and
fallback to querying the user if neither is present.
2006-09-28 23:26:58 +00:00
Nikolaus Schulz
dc023db895
Fixed guess_return_path() to actually extract 'Return-path' and 'From' headers.
2006-09-28 22:26:07 +00:00
Nikolaus Schulz
8f47290956
Fixed long options --filter-append and --pwfile to accept their arguments.
2006-09-28 22:19:12 +00:00
Peter Poeml
75506d9be2
check in the man page, so it doesn't need to be generated locally
2006-06-27 05:38:56 +00:00