Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Debug message improvements. Explicitely say if we're selecting an IMAP mailbox | Nikolaus Schulz | 2007-11-07 | 1 | -3/+5 |
| | | | | | read-only. Improve some formatting. | ||||
* | Added more debugging messages to the IMAP flag conversion. | Nikolaus Schulz | 2007-11-07 | 1 | -3/+7 |
| | |||||
* | Minor code cleanup. | Nikolaus Schulz | 2007-11-07 | 1 | -1/+1 |
| | |||||
* | IMAP: if selecting a mailbox fails with both the original path name and with | Nikolaus Schulz | 2007-11-07 | 1 | -2/+2 |
| | | | | | replaced path delimiters, report failure for the original path. | ||||
* | Minor code cleanups. | Nikolaus Schulz | 2007-11-07 | 1 | -13/+6 |
| | |||||
* | IMAP: if selecting the mailbox fails, then detect the server's mailbox hierarchy | Nikolaus Schulz | 2007-11-07 | 1 | -6/+48 |
| | | | | | delimiter, replace slashes in the mailbox name with the delimiter and try again. | ||||
* | Fixed IMAP --verbose mode to say what we're *intending* to do next, instead of | Nikolaus Schulz | 2007-11-07 | 1 | -5/+9 |
| | | | | | | reporting success after the fact. This makes a lot more sense for debugging. Also added some more messages. | ||||
* | archivemail.py, setup.py, test_archivemail.py: | Nikolaus Schulz | 2007-11-07 | 1 | -3/+3 |
| | | | | | bumped version to 0.7.1, and updated copyright. | ||||
* | When converting from other formats to mbox, don't preserve existing 'Status' and | Nikolaus Schulz | 2007-11-02 | 1 | -21/+12 |
| | | | | | 'X-Status' mbox headers, we better overwrite them with correct values. | ||||
* | With IMAP no IdentityCache object was initialized, causing a crash if | Nikolaus Schulz | 2007-11-02 | 1 | -0/+1 |
| | | | | | --warn-duplicates was used. Closes: Debian bug #434786. | ||||
* | archivemail.py: added --copy option to the usage message. | Nikolaus Schulz | 2007-11-02 | 1 | -0/+1 |
| | |||||
* | Let archivemail accept --days=0. | Nikolaus Schulz | 2007-11-02 | 1 | -2/+2 |
| | |||||
* | Expand tilde in argument of long option --pwfile. | Nikolaus Schulz | 2007-11-02 | 1 | -1/+1 |
| | |||||
* | Deprecate the old automatic seteuid feature; document this in the manpage and | Nikolaus Schulz | 2007-11-02 | 1 | -0/+2 |
| | | | | | | changelog, and let archivemail spit a warning when it changes the effective user id. | ||||
* | If running as root, only switch the effective uid and gid back if we have | Nikolaus Schulz | 2007-11-02 | 1 | -1/+1 |
| | | | | | actually switched them before. | ||||
* | New option --copy: archive mail, but don't delete it from the mailbox. | Nikolaus Schulz | 2007-11-02 | 1 | -21/+31 |
| | | | | | Closes: #981865, #988803, #1764851, Debian bug #434798 | ||||
* | IMAP: first fetch message flags, then the body. Doing it together always | Nikolaus Schulz | 2007-11-02 | 1 | -2/+7 |
| | | | | | | returns the \Seen flag set. Closes: Debian bug #434807 (well, the outstanding part of it). | ||||
* | When converting from maildir or IMAP to mbox, report existing 'Status' and | Nikolaus Schulz | 2007-11-02 | 1 | -4/+16 |
| | | | | | | 'X-Status' headers in verbose mode, since they are preserved, which can give surprising results. | ||||
* | IMAP: fixed message flags retrieval, which failed to extract the right string | Nikolaus Schulz | 2007-11-02 | 1 | -1/+1 |
| | | | | | from the server response. Tough. | ||||
* | If dry-running, open IMAP mailboxes read-only. This uses EXAMINE instead of | Nikolaus Schulz | 2007-11-02 | 1 | -1/+4 |
| | | | | | select, thus preserving the \Recent flag. | ||||
* | add_status_headers_imap(): | Nikolaus Schulz | 2007-11-02 | 1 | -5/+2 |
| | | | | | | | | | * 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'. | ||||
* | Skip invalid messages/files in Maildirs. | Nikolaus Schulz | 2007-10-24 | 1 | -3/+4 |
| | | | | | | Closes: #1783369, Debian bug #255944, and Debian bug #305902 also seems about this issue. | ||||
* | New IMAP URL parser that understands double-quoted usernames and passwords. | Nikolaus Schulz | 2007-10-23 | 1 | -12/+40 |
| | | | | | Closes: #1640878 | ||||
* | Define very simple exception classes, mapping to the error functions | Nikolaus Schulz | 2007-10-23 | 1 | -3/+16 |
| | | | | | | | 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(). | ||||
* | Use a wrapper around rfc822.Message.fp to find the filename for Maildir/MH | Nikolaus Schulz | 2007-10-22 | 1 | -8/+30 |
| | | | | | | emails. Python 2.5 broke backward compatibility for Maildirs. :-/ Closes: #1670422 | ||||
* | Expand tilde in argument of long option --output-dir, the shell doesn't. | Nikolaus Schulz | 2006-11-14 | 1 | -1/+1 |
| | |||||
* | Bumped version to 0.7.0 | Nikolaus Schulz | 2006-11-02 | 1 | -1/+1 |
| | |||||
* | Renamed __cvs_id__ to __svn_id__. | Nikolaus Schulz | 2006-11-02 | 1 | -1/+1 |
| | |||||
* | Split the final stats message in two lines, because it might otherwise linewrap. | Nikolaus Schulz | 2006-11-02 | 1 | -1/+1 |
| | |||||
* | Made IMAP password prompt a tad bit more verbose. | Nikolaus Schulz | 2006-11-01 | 1 | -1/+1 |
| | |||||
* | Don't prompt for the IMAP password if in quiet mode or if not running | Nikolaus Schulz | 2006-11-01 | 1 | -0/+2 |
| | | | | | interactively (stdin is not a terminal). | ||||
* | Improved IMAP error handling: pass error messages from the server on to the | Nikolaus Schulz | 2006-11-01 | 1 | -5/+12 |
| | | | | | user, and check if deleting the messages was successful. | ||||
* | Streamlined verbose IMAP messages a bit. | Nikolaus Schulz | 2006-11-01 | 1 | -2/+2 |
| | |||||
* | Removed redundant check if imap login was succesful, since IMAP4.login then | Nikolaus Schulz | 2006-11-01 | 1 | -1/+0 |
| | | | | | raises an exception. | ||||
* | Tightened some blanket exception handlers. | Nikolaus Schulz | 2006-11-01 | 1 | -5/+5 |
| | |||||
* | Changed misleading references to 'message ids' in the IMAP code to the | Nikolaus Schulz | 2006-11-01 | 1 | -4/+5 |
| | | | | | technically correct 'message sequence number'. | ||||
* | Optimized IMAP code: just invert the message list from the SEARCH response | Nikolaus Schulz | 2006-11-01 | 1 | -35/+23 |
| | | | | | | instead of querying the server another time with an inverted search filter. Gather RFC822.SIZE in one big run. | ||||
* | Renamed variable 'filter' to prevent conflicts with the builtin function. | Nikolaus Schulz | 2006-11-01 | 1 | -17/+17 |
| | |||||
* | Always sanity-check each archive destination directory, not only when it's | Nikolaus Schulz | 2006-10-31 | 1 | -9/+19 |
| | | | | | specified with --output-dir. | ||||
* | Make stats report size totals for the mailboxes and the archived messages, and | Nikolaus Schulz | 2006-10-31 | 1 | -18/+81 |
| | | | | | while at it, make stats work with IMAP. | ||||
* | Minor code cleanup in build_imap_filter(). | Nikolaus Schulz | 2006-10-31 | 1 | -5/+2 |
| | |||||
* | Shortened new option name "--dont-mangle-from" to "--dont-mangle". | Nikolaus Schulz | 2006-10-30 | 1 | -3/+3 |
| | |||||
* | Rewrote Mbox.procmail_lock() to fix locking race condition. Should now also be | Nikolaus Schulz | 2006-10-30 | 1 | -12/+33 |
| | | | | | NFS-safe. | ||||
* | 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. | ||||
* | Replaced all tempfile.mktemp() calls with mkstemp()/mkdtemp(). | Nikolaus Schulz | 2006-10-27 | 1 | -5/+4 |
| | | | | | | | 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. :-) | ||||
* | 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. | ||||
* | Updated archivemail.__copyright__ | Nikolaus Schulz | 2006-10-14 | 1 | -1/+4 |
| | |||||
* | Added maintainer entry in setup.py. | Nikolaus Schulz | 2006-10-12 | 1 | -1/+3 |
| | | | | | Updated copyright notices in archivemail.py and test_archivemail.py. |