Commit Graph

  • b40da3124a archivemail.py: added --copy option to the usage message. Nikolaus Schulz 2007-11-02 21:21:17 +0000
  • aae08fe3fb Let archivemail accept --days=0. Nikolaus Schulz 2007-11-02 21:18:23 +0000
  • 59e9715021 Expand tilde in argument of long option --pwfile. Nikolaus Schulz 2007-11-02 21:06:59 +0000
  • e25367fcb8 Documented the new --copy option in the manpage. Nikolaus Schulz 2007-11-02 20:50:30 +0000
  • c5002cdefb Updated manpage: note that IMAP server internal message dates may differ from user-visible date headers, and that there exist servers not supporting searches. Nikolaus Schulz 2007-11-02 20:42:16 +0000
  • c97b10f253 Hm, forgot the autogenerated manpage in the previous commit. Nikolaus Schulz 2007-11-02 20:27:37 +0000
  • b2f94206b1 Deprecate the old automatic seteuid feature; document this in the manpage and changelog, and let archivemail spit a warning when it changes the effective user id. Nikolaus Schulz 2007-11-02 20:26:40 +0000
  • dfec62850e Updated manpage: document that archivemail will implicitly unset the \Recent message flag of all messages in an IMAP folder. Nikolaus Schulz 2007-11-02 19:21:10 +0000
  • 3ee105d766 If running as root, only switch the effective uid and gid back if we have actually switched them before. Nikolaus Schulz 2007-11-02 18:47:23 +0000
  • a1641450ed Added simple unittest for the --copy option. Mbox only. :-/ Nikolaus Schulz 2007-11-02 18:21:21 +0000
  • bcb00dbbed CHANGELOG: updated to cover fixed IMAP message flag handling and new --copy option. Nikolaus Schulz 2007-11-02 17:53:29 +0000
  • 3240b24d9f New option --copy: archive mail, but don't delete it from the mailbox. Closes: #981865, #988803, #1764851, Debian bug #434798 Nikolaus Schulz 2007-11-02 17:44:38 +0000
  • 0eba452d93 IMAP: first fetch message flags, then the body. Doing it together always returns the \Seen flag set. Closes: Debian bug #434807 (well, the outstanding part of it). Nikolaus Schulz 2007-11-02 13:21:18 +0000
  • 130a5ef117 When converting from maildir or IMAP to mbox, report existing 'Status' and 'X-Status' headers in verbose mode, since they are preserved, which can give surprising results. Nikolaus Schulz 2007-11-02 12:27:32 +0000
  • 82e3be1987 IMAP: fixed message flags retrieval, which failed to extract the right string from the server response. Tough. Nikolaus Schulz 2007-11-02 12:00:12 +0000
  • 6ea7c7d810 If dry-running, open IMAP mailboxes read-only. This uses EXAMINE instead of select, thus preserving the \Recent flag. Nikolaus Schulz 2007-11-02 11:44:21 +0000
  • 9e70e576af add_status_headers_imap(): * mark message 'old' iff it's not \Recent (drop requirement that it's unread; this probably confused mutt's message status flags in the index with mbox status flags). * a message not \Seen and not \Recent was marked as 'N', but there is no such thing like an mbox status flag 'N'. Nikolaus Schulz 2007-11-02 11:26:20 +0000
  • 1d89f59b53 TODO: drop paragraph about reworking the IMAP URL parser (done). Nikolaus Schulz 2007-11-01 12:01:44 +0000
  • 6d2d1fba44 Changelog: updated latest entry: added credit to Elan Ruusamäe for tracking #1783369 down, and made it more verbose about the related Debian bugs. Nikolaus Schulz 2007-11-01 11:55:12 +0000
  • 9b7768e073 Rewrote and reordered parts of the manpage: * Move paragraph about archiving IMAP folders before the option list * Added section subsection about IMAP URL handling * Added IMAP example command line Nikolaus Schulz 2007-10-24 14:58:47 +0000
  • d566d6c8f3 Makefile: updated SVNROOT variable. Nikolaus Schulz 2007-10-24 11:30:00 +0000
  • b40728e740 Updated changelog about latest bugfix (skipping invalid files in Maildirs). Nikolaus Schulz 2007-10-24 02:33:31 +0000
  • 8e73e315e4 Skip invalid messages/files in Maildirs. Closes: #1783369, Debian bug #255944, and Debian bug #305902 also seems about this issue. Nikolaus Schulz 2007-10-24 02:23:59 +0000
  • b07a4cfbf3 TODO: new items: * IMAP unittests * bug triage * Porting to email.message and the new mailbox modules in python 2.5. Nikolaus Schulz 2007-10-23 23:29:05 +0000
  • 256492039a Added unittest for the new IMAP URL parser. Nikolaus Schulz 2007-10-23 23:23:44 +0000
  • f3719df4d2 Updated documentation WRT to the new quoted usernames/passwords in IMAP URLs. Nikolaus Schulz 2007-10-23 23:11:29 +0000
  • 0e9ae1d91b New IMAP URL parser that understands double-quoted usernames and passwords. Closes: #1640878 Nikolaus Schulz 2007-10-23 22:48:15 +0000
  • 1493a22f38 Define very simple exception classes, mapping to the error functions user_error() and unexpected_error(). If archivemail is used as a module, let the functions raise the corresponding exceptions rather than writing to stderr and calling sys.exit(). Nikolaus Schulz 2007-10-23 22:27:57 +0000
  • 255a475978 Use a wrapper around rfc822.Message.fp to find the filename for Maildir/MH emails. Python 2.5 broke backward compatibility for Maildirs. :-/ Closes: #1670422 Nikolaus Schulz 2007-10-22 22:03:44 +0000
  • c67a75c2f7 TODO: updated with some old items which weren't yet committed to svn. Nikolaus Schulz 2007-09-18 00:30:10 +0000
  • 8abd70093f Expand tilde in argument of long option --output-dir, the shell doesn't. Nikolaus Schulz 2006-11-14 22:20:37 +0000
  • ef97390118 Corrected python dependency in the man page. Nikolaus Schulz 2006-11-06 21:41:59 +0000
  • 32ecf02025 README: Updated python dependency, removed note about the required zlib module since that should be pretty much standard, and added maintainer email addresses. v0_7_0 Nikolaus Schulz 2006-11-02 23:04:14 +0000
  • faa68b2048 Bumped version to 0.7.0 Nikolaus Schulz 2006-11-02 06:43:09 +0000
  • 8de4715e5c Renamed __cvs_id__ to __svn_id__. Nikolaus Schulz 2006-11-02 06:40:31 +0000
  • 58f67ff286 Changelog update: added IMAP error reporting Nikolaus Schulz 2006-11-02 05:49:18 +0000
  • 0278901ba1 Added a note to the manpage that --pwfile will not work if archiving folders from several IMAP accounts. Nikolaus Schulz 2006-11-02 05:45:26 +0000
  • cb48d392fa TODO update. Added: IMAP url clutter/password leakage, unfriendly locking practice. Removed: only prompt for IMAP password when running in terminal. Nikolaus Schulz 2006-11-02 05:43:33 +0000
  • 46f9aa44a9 Split the final stats message in two lines, because it might otherwise linewrap. Nikolaus Schulz 2006-11-02 05:36:17 +0000
  • 810dea1bf5 Made IMAP password prompt a tad bit more verbose. Nikolaus Schulz 2006-11-01 21:05:10 +0000
  • 3d8a1bda89 Don't prompt for the IMAP password if in quiet mode or if not running interactively (stdin is not a terminal). Nikolaus Schulz 2006-11-01 20:57:58 +0000
  • 89e6683334 Improved IMAP error handling: pass error messages from the server on to the user, and check if deleting the messages was successful. Nikolaus Schulz 2006-11-01 20:35:53 +0000
  • c7d074abde Streamlined verbose IMAP messages a bit. Nikolaus Schulz 2006-11-01 20:25:09 +0000
  • d79da0ae99 Removed redundant check if imap login was succesful, since IMAP4.login then raises an exception. Nikolaus Schulz 2006-11-01 20:23:44 +0000
  • c5f194f3ec Tightened some blanket exception handlers. Nikolaus Schulz 2006-11-01 19:49:47 +0000
  • e872f2211e Changed misleading references to 'message ids' in the IMAP code to the technically correct 'message sequence number'. Nikolaus Schulz 2006-11-01 06:11:55 +0000
  • 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. Nikolaus Schulz 2006-11-01 05:27:30 +0000
  • 86f1fec50d Renamed variable 'filter' to prevent conflicts with the builtin function. Nikolaus Schulz 2006-11-01 00:40:26 +0000
  • e9a11944f1 Updated CHANGELOG and polished it a bit for the upcoming release. Nikolaus Schulz 2006-10-31 05:00:15 +0000
  • 7a2e1b7c69 Added a few items to the TODO list that won't be resolved with the next release. Nikolaus Schulz 2006-10-31 04:50:05 +0000
  • f9965b8e23 Reverted script name change from rev. 101, so we generate a clean tarball again. Nikolaus Schulz 2006-10-31 04:47:24 +0000
  • b3dc8a006e Always sanity-check each archive destination directory, not only when it's specified with --output-dir. Nikolaus Schulz 2006-10-31 04:09:31 +0000
  • dcd37f6466 Make stats report size totals for the mailboxes and the archived messages, and while at it, make stats work with IMAP. Nikolaus Schulz 2006-10-31 03:07:02 +0000
  • 9549c3e29d Minor code cleanup in build_imap_filter(). Nikolaus Schulz 2006-10-31 00:35:19 +0000
  • 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. Nikolaus Schulz 2006-10-30 19:48:25 +0000
  • a221f62f52 Shortened new option name "--dont-mangle-from" to "--dont-mangle". Nikolaus Schulz 2006-10-30 19:34:39 +0000
  • 697c22daac Rewrote Mbox.procmail_lock() to fix locking race condition. Should now also be NFS-safe. Nikolaus Schulz 2006-10-30 19:29:15 +0000
  • 700bce69b4 Testsuite: fixed testDeleteOldMail to check the right option. Nikolaus Schulz 2006-10-30 18:25:28 +0000
  • daed56f0c5 TODO: added that currently all items are from the original author and still have to be checked. :-) Nikolaus Schulz 2006-10-29 04:09:11 +0000
  • a8e76ead22 Testsuite: create temporary directory with prefix. Nikolaus Schulz 2006-10-29 04:05:37 +0000
  • 93015a6d84 Dropped test from testsuite if dotlock file is world-readable, this isn't required. Nikolaus Schulz 2006-10-29 03:59:57 +0000
  • 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. Nikolaus Schulz 2006-10-29 03:10:45 +0000
  • 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. Nikolaus Schulz 2006-10-29 00:04:09 +0000
  • e78b33e115 Updated CHANGELOG. Nikolaus Schulz 2006-10-28 18:42:17 +0000
  • bd2f65d0af Changelog: added entry for CRAM-MD5 login to the changelog of the latest version 0.6.2. Nikolaus Schulz 2006-10-28 18:31:29 +0000
  • 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. :-) Nikolaus Schulz 2006-10-27 03:23:16 +0000
  • 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. Nikolaus Schulz 2006-10-27 02:12:45 +0000
  • 0a666a10a6 test_archivemail.py: added two missing self.setUp() calls in the TestArchiveMbox testcase. Nikolaus Schulz 2006-10-27 01:30:49 +0000
  • 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. Nikolaus Schulz 2006-10-27 01:00:39 +0000
  • ee45d946ed test_archivemail.py: don't check for os.fork(), simply use it -- we're targeting posix platforms only. Nikolaus Schulz 2006-10-27 00:13:48 +0000
  • 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. Nikolaus Schulz 2006-10-20 22:50:38 +0000
  • 157db85b7f Updated manpage: From_ mangling is only done for messages from mailboxes not in mbox format. Nikolaus Schulz 2006-10-18 23:06:29 +0000
  • 39f1d23993 Clarified comment about the python version required to run setup.py. Nikolaus Schulz 2006-10-18 01:32:51 +0000
  • 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. Nikolaus Schulz 2006-10-18 01:20:05 +0000
  • f4c6017d32 IMAPS and IMAP4.login_cram_md5() are new in Python 2.3; bump Python dependency check to version 2.3. Nikolaus Schulz 2006-10-14 23:22:25 +0000
  • ae5e5f63a1 Shorten credits. Nikolaus Schulz 2006-10-14 22:49:31 +0000
  • 334d1ef9f1 Updated archivemail.__copyright__ Nikolaus Schulz 2006-10-14 22:45:25 +0000
  • 031c6aea7c Extract $(VERSION) from setup.py. Nikolaus Schulz 2006-10-14 20:59:14 +0000
  • 3354e35ec9 Disabled bdist_rpm target, it chokes on the manpage. Nikolaus Schulz 2006-10-14 20:57:29 +0000
  • a121b1c1d3 Drop fakeroot from sdist rule. Not needed, Debian-specific. Nikolaus Schulz 2006-10-14 20:30:14 +0000
  • eb2b4a64f9 Ported "tag" rule to svn, to the extent that's easily possible. Nikolaus Schulz 2006-10-14 19:37:08 +0000
  • 4c04117de8 Forgot to commit updated troff manual. Nikolaus Schulz 2006-10-13 00:08:37 +0000
  • d0a209fa7a Updated <Date/>, updated AUTHOR section. Nikolaus Schulz 2006-10-13 00:07:05 +0000
  • d631079250 Added maintainer entry in setup.py. Updated copyright notices in archivemail.py and test_archivemail.py. Nikolaus Schulz 2006-10-12 23:02:03 +0000
  • b682b26398 Added new option --dont-mangle-from to turn off From_ mangling. Nikolaus Schulz 2006-10-12 21:14:04 +0000
  • 6198341eef Made From_ mangling work reliably with large messages, too. Nikolaus Schulz 2006-10-12 19:28:30 +0000
  • 88ef628f20 Mangle From_ in message bodies. Nikolaus Schulz 2006-10-12 18:19:01 +0000
  • a0994e6a57 Terminate each message in newly written mbox with an empty line. Nikolaus Schulz 2006-10-12 17:35:37 +0000
  • 539894ced4 Implemented --dry-run and --delete for IMAP, both do no not download messages. Stats are still missing. Nikolaus Schulz 2006-10-12 01:02:35 +0000
  • 800a957b59 Preparing the implementation of IMAP --delete: if not dry-running, delete messages whether we archived them or not. Nikolaus Schulz 2006-10-11 19:56:50 +0000
  • 27ca6547c5 Kindly shutdown IMAP connection when doing a --dry-run, too. Nikolaus Schulz 2006-10-11 19:28:36 +0000
  • b8b64804c9 _archive_imap(): deleted unused variable. Nikolaus Schulz 2006-10-11 19:18:43 +0000
  • ab28001c84 Fixed invalid IMAP filter string for large messages (--size option). Closes: #863813 Nikolaus Schulz 2006-10-02 00:22:58 +0000
  • 931c2118f3 Removed trailing space from svn:ignore pattern. Nikolaus Schulz 2006-10-01 02:35:52 +0000
  • 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. Nikolaus Schulz 2006-10-01 02:32:19 +0000
  • 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). Nikolaus Schulz 2006-09-29 23:14:10 +0000
  • a8fd65eb5a Added temporary files manpage.{links,refs} from docbook2man to svn:ignore. Nikolaus Schulz 2006-09-29 00:53:17 +0000
  • f302156d41 Removed obsolete .cvsignore, svn:ignore ist set accordingly. Nikolaus Schulz 2006-09-29 00:31:54 +0000
  • 874f325330 Updated description of the IMAP URL syntax: list the methods to specify the password, document the IMAPS capability and its syntax. Nikolaus Schulz 2006-09-28 23:56:31 +0000
  • 74922b1beb Document new options --pwfile and --filter-append and their short counterparts in the manual. Nikolaus Schulz 2006-09-28 23:49:45 +0000