59e9715021Expand tilde in argument of long option --pwfile.
Nikolaus Schulz
2007-11-02 21:06:59 +0000
e25367fcb8Documented the new --copy option in the manpage.
Nikolaus Schulz
2007-11-02 20:50:30 +0000
c5002cdefbUpdated 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
c97b10f253Hm, forgot the autogenerated manpage in the previous commit.
Nikolaus Schulz
2007-11-02 20:27:37 +0000
b2f94206b1Deprecate 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
dfec62850eUpdated 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
3ee105d766If 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
a1641450edAdded simple unittest for the --copy option. Mbox only. :-/
Nikolaus Schulz
2007-11-02 18:21:21 +0000
bcb00dbbedCHANGELOG: updated to cover fixed IMAP message flag handling and new --copy option.
Nikolaus Schulz
2007-11-02 17:53:29 +0000
3240b24d9fNew 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
0eba452d93IMAP: 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
130a5ef117When 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
82e3be1987IMAP: 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
6ea7c7d810If 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
9e70e576afadd_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
1d89f59b53TODO: drop paragraph about reworking the IMAP URL parser (done).
Nikolaus Schulz
2007-11-01 12:01:44 +0000
6d2d1fba44Changelog: 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
9b7768e073Rewrote 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
b40728e740Updated changelog about latest bugfix (skipping invalid files in Maildirs).
Nikolaus Schulz
2007-10-24 02:33:31 +0000
8e73e315e4Skip 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
b07a4cfbf3TODO: 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
256492039aAdded unittest for the new IMAP URL parser.
Nikolaus Schulz
2007-10-23 23:23:44 +0000
f3719df4d2Updated documentation WRT to the new quoted usernames/passwords in IMAP URLs.
Nikolaus Schulz
2007-10-23 23:11:29 +0000
0e9ae1d91bNew IMAP URL parser that understands double-quoted usernames and passwords. Closes: #1640878
Nikolaus Schulz
2007-10-23 22:48:15 +0000
1493a22f38Define 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
255a475978Use 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
c67a75c2f7TODO: updated with some old items which weren't yet committed to svn.
Nikolaus Schulz
2007-09-18 00:30:10 +0000
8abd70093fExpand tilde in argument of long option --output-dir, the shell doesn't.
Nikolaus Schulz
2006-11-14 22:20:37 +0000
ef97390118Corrected python dependency in the man page.
Nikolaus Schulz
2006-11-06 21:41:59 +0000
32ecf02025README: 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
faa68b2048Bumped version to 0.7.0
Nikolaus Schulz
2006-11-02 06:43:09 +0000
8de4715e5cRenamed __cvs_id__ to __svn_id__.
Nikolaus Schulz
2006-11-02 06:40:31 +0000
0278901ba1Added 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
cb48d392faTODO 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
46f9aa44a9Split the final stats message in two lines, because it might otherwise linewrap.
Nikolaus Schulz
2006-11-02 05:36:17 +0000
810dea1bf5Made IMAP password prompt a tad bit more verbose.
Nikolaus Schulz
2006-11-01 21:05:10 +0000
3d8a1bda89Don'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
89e6683334Improved 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
d79da0ae99Removed redundant check if imap login was succesful, since IMAP4.login then raises an exception.
Nikolaus Schulz
2006-11-01 20:23:44 +0000
c5f194f3ecTightened some blanket exception handlers.
Nikolaus Schulz
2006-11-01 19:49:47 +0000
e872f2211eChanged 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
bea6ef6390Optimized 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
86f1fec50dRenamed variable 'filter' to prevent conflicts with the builtin function.
Nikolaus Schulz
2006-11-01 00:40:26 +0000
e9a11944f1Updated CHANGELOG and polished it a bit for the upcoming release.
Nikolaus Schulz
2006-10-31 05:00:15 +0000
7a2e1b7c69Added 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
f9965b8e23Reverted script name change from rev. 101, so we generate a clean tarball again.
Nikolaus Schulz
2006-10-31 04:47:24 +0000
b3dc8a006eAlways sanity-check each archive destination directory, not only when it's specified with --output-dir.
Nikolaus Schulz
2006-10-31 04:09:31 +0000
dcd37f6466Make 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
9549c3e29dMinor code cleanup in build_imap_filter().
Nikolaus Schulz
2006-10-31 00:35:19 +0000
0b40278a78The 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
a221f62f52Shortened new option name "--dont-mangle-from" to "--dont-mangle".
Nikolaus Schulz
2006-10-30 19:34:39 +0000
697c22daacRewrote Mbox.procmail_lock() to fix locking race condition. Should now also be NFS-safe.
Nikolaus Schulz
2006-10-30 19:29:15 +0000
700bce69b4Testsuite: fixed testDeleteOldMail to check the right option.
Nikolaus Schulz
2006-10-30 18:25:28 +0000
daed56f0c5TODO: 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
93015a6d84Dropped test from testsuite if dotlock file is world-readable, this isn't required.
Nikolaus Schulz
2006-10-29 03:59:57 +0000
99cfab1f4eDon'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
2dbd3c1940Preparing 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
bd2f65d0afChangelog: 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
5eb4cf3cf6Replaced 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
e491da3a11test_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
0a666a10a6test_archivemail.py: added two missing self.setUp() calls in the TestArchiveMbox testcase.
Nikolaus Schulz
2006-10-27 01:30:49 +0000
7ae1b7bb3ftest_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
ee45d946edtest_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
06d158c576Fixed 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
157db85b7fUpdated manpage: From_ mangling is only done for messages from mailboxes not in mbox format.
Nikolaus Schulz
2006-10-18 23:06:29 +0000
39f1d23993Clarified comment about the python version required to run setup.py.
Nikolaus Schulz
2006-10-18 01:32:51 +0000
3c0939a3efWhen 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
f4c6017d32IMAPS 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
d631079250Added maintainer entry in setup.py. Updated copyright notices in archivemail.py and test_archivemail.py.
Nikolaus Schulz
2006-10-12 23:02:03 +0000
b682b26398Added new option --dont-mangle-from to turn off From_ mangling.
Nikolaus Schulz
2006-10-12 21:14:04 +0000
6198341eefMade From_ mangling work reliably with large messages, too.
Nikolaus Schulz
2006-10-12 19:28:30 +0000
88ef628f20Mangle From_ in message bodies.
Nikolaus Schulz
2006-10-12 18:19:01 +0000
a0994e6a57Terminate each message in newly written mbox with an empty line.
Nikolaus Schulz
2006-10-12 17:35:37 +0000
539894ced4Implemented --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
800a957b59Preparing 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
27ca6547c5Kindly shutdown IMAP connection when doing a --dry-run, too.
Nikolaus Schulz
2006-10-11 19:28:36 +0000
ab28001c84Fixed invalid IMAP filter string for large messages (--size option). Closes: #863813
Nikolaus Schulz
2006-10-02 00:22:58 +0000
931c2118f3Removed trailing space from svn:ignore pattern.
Nikolaus Schulz
2006-10-01 02:35:52 +0000
a6ff806d2aFixed 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
6895571d3bSwitched 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
a8fd65eb5aAdded temporary files manpage.{links,refs} from docbook2man to svn:ignore.
Nikolaus Schulz
2006-09-29 00:53:17 +0000
f302156d41Removed obsolete .cvsignore, svn:ignore ist set accordingly.
Nikolaus Schulz
2006-09-29 00:31:54 +0000
874f325330Updated 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
74922b1bebDocument new options --pwfile and --filter-append and their short counterparts in the manual.
Nikolaus Schulz
2006-09-28 23:49:45 +0000