1
0
Fork 0
mirror of https://git.code.sf.net/p/archivemail/code synced 2025-01-02 21:24:40 +00:00
Commit graph

143 commits

Author SHA1 Message Date
Nikolaus Schulz
3d8a1bda89 Don't prompt for the IMAP password if in quiet mode or if not running
interactively (stdin is not a terminal).
2006-11-01 20:57:58 +00:00
Nikolaus Schulz
89e6683334 Improved IMAP error handling: pass error messages from the server on to the
user, and check if deleting the messages was successful.
2006-11-01 20:35:53 +00:00
Nikolaus Schulz
c7d074abde Streamlined verbose IMAP messages a bit. 2006-11-01 20:25:09 +00:00
Nikolaus Schulz
d79da0ae99 Removed redundant check if imap login was succesful, since IMAP4.login then
raises an exception.
2006-11-01 20:23:44 +00:00
Nikolaus Schulz
c5f194f3ec Tightened some blanket exception handlers. 2006-11-01 19:49:47 +00:00
Nikolaus Schulz
e872f2211e Changed misleading references to 'message ids' in the IMAP code to the
technically correct 'message sequence number'.
2006-11-01 06:11:55 +00:00
Nikolaus Schulz
bea6ef6390 Optimized IMAP code: just invert the message list from the SEARCH response
instead of querying the server another time with an inverted search filter.
Gather RFC822.SIZE in one big run.
2006-11-01 05:27:30 +00:00
Nikolaus Schulz
86f1fec50d Renamed variable 'filter' to prevent conflicts with the builtin function. 2006-11-01 00:40:26 +00:00
Nikolaus Schulz
e9a11944f1 Updated CHANGELOG and polished it a bit for the upcoming release. 2006-10-31 05:00:15 +00:00
Nikolaus Schulz
7a2e1b7c69 Added a few items to the TODO list that won't be resolved with the next release. 2006-10-31 04:50:05 +00:00
Nikolaus Schulz
f9965b8e23 Reverted script name change from rev. 101, so we generate a clean tarball again. 2006-10-31 04:47:24 +00:00
Nikolaus Schulz
b3dc8a006e Always sanity-check each archive destination directory, not only when it's
specified with --output-dir.
2006-10-31 04:09:31 +00:00
Nikolaus Schulz
dcd37f6466 Make stats report size totals for the mailboxes and the archived messages, and
while at it, make stats work with IMAP.
2006-10-31 03:07:02 +00:00
Nikolaus Schulz
9549c3e29d Minor code cleanup in build_imap_filter(). 2006-10-31 00:35:19 +00:00
Nikolaus Schulz
0b40278a78 The archivemail-devel list is subscribers-only and not very useful as a general
contact address, so better give personal maintainer names and email addresses in
setup.py.
2006-10-30 19:48:25 +00:00
Nikolaus Schulz
a221f62f52 Shortened new option name "--dont-mangle-from" to "--dont-mangle". 2006-10-30 19:34:39 +00:00
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