Commit Graph

383 Commits

Author SHA1 Message Date
Nikolaus Schulz b40da3124a archivemail.py: added --copy option to the usage message. 2007-11-02 21:21:17 +00:00
Nikolaus Schulz aae08fe3fb Let archivemail accept --days=0. 2007-11-02 21:18:23 +00:00
Nikolaus Schulz 59e9715021 Expand tilde in argument of long option --pwfile. 2007-11-02 21:06:59 +00:00
Nikolaus Schulz e25367fcb8 Documented the new --copy option in the manpage. 2007-11-02 20:50:30 +00:00
Nikolaus Schulz 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.
2007-11-02 20:42:16 +00:00
Nikolaus Schulz c97b10f253 Hm, forgot the autogenerated manpage in the previous commit. 2007-11-02 20:27:37 +00:00
Nikolaus Schulz 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.
2007-11-02 20:26:40 +00:00
Nikolaus Schulz dfec62850e Updated manpage: document that archivemail will implicitly unset the \Recent
message flag of all messages in an IMAP folder.
2007-11-02 19:21:10 +00:00
Nikolaus Schulz 3ee105d766 If running as root, only switch the effective uid and gid back if we have
actually switched them before.
2007-11-02 18:47:23 +00:00
Nikolaus Schulz a1641450ed Added simple unittest for the --copy option. Mbox only. :-/ 2007-11-02 18:21:21 +00:00
Nikolaus Schulz bcb00dbbed CHANGELOG: updated to cover fixed IMAP message flag handling and new --copy
option.
2007-11-02 17:53:29 +00:00
Nikolaus Schulz 3240b24d9f New option --copy: archive mail, but don't delete it from the mailbox.
Closes: #981865, #988803, #1764851, Debian bug #434798
2007-11-02 17:44:38 +00:00
Nikolaus Schulz 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).
2007-11-02 13:21:18 +00:00
Nikolaus Schulz 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.
2007-11-02 12:27:32 +00:00
Nikolaus Schulz 82e3be1987 IMAP: fixed message flags retrieval, which failed to extract the right string
from the server response.  Tough.
2007-11-02 12:00:12 +00:00
Nikolaus Schulz 6ea7c7d810 If dry-running, open IMAP mailboxes read-only. This uses EXAMINE instead of
select, thus preserving the \Recent flag.
2007-11-02 11:44:21 +00:00
Nikolaus Schulz 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'.
2007-11-02 11:26:20 +00:00
Nikolaus Schulz 1d89f59b53 TODO: drop paragraph about reworking the IMAP URL parser (done). 2007-11-01 12:01:44 +00:00
Nikolaus Schulz 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.
2007-11-01 11:55:12 +00:00
Nikolaus Schulz 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
2007-10-24 14:58:47 +00:00
Nikolaus Schulz d566d6c8f3 Makefile: updated SVNROOT variable. 2007-10-24 11:30:00 +00:00
Nikolaus Schulz b40728e740 Updated changelog about latest bugfix (skipping invalid files in Maildirs). 2007-10-24 02:33:31 +00:00
Nikolaus Schulz 8e73e315e4 Skip invalid messages/files in Maildirs.
Closes: #1783369, Debian bug #255944, and Debian bug #305902 also seems about
        this issue.
2007-10-24 02:23:59 +00:00
Nikolaus Schulz b07a4cfbf3 TODO: new items:
* IMAP unittests
    * bug triage
    * Porting to email.message and the new mailbox modules in python 2.5.
2007-10-23 23:29:05 +00:00
Nikolaus Schulz 256492039a Added unittest for the new IMAP URL parser. 2007-10-23 23:23:44 +00:00
Nikolaus Schulz f3719df4d2 Updated documentation WRT to the new quoted usernames/passwords in IMAP URLs. 2007-10-23 23:11:29 +00:00
Nikolaus Schulz 0e9ae1d91b New IMAP URL parser that understands double-quoted usernames and passwords.
Closes: #1640878
2007-10-23 22:48:15 +00:00
Nikolaus Schulz 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().
2007-10-23 22:27:57 +00:00
Nikolaus Schulz 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
2007-10-22 22:03:44 +00:00
Nikolaus Schulz c67a75c2f7 TODO: updated with some old items which weren't yet committed to svn. 2007-09-18 00:30:10 +00:00
Nikolaus Schulz 8abd70093f Expand tilde in argument of long option --output-dir, the shell doesn't. 2006-11-14 22:20:37 +00:00
Nikolaus Schulz ef97390118 Corrected python dependency in the man page. 2006-11-06 21:41:59 +00:00
Nikolaus Schulz 32ecf02025 README: Updated python dependency, removed note about the required zlib module
since that should be pretty much standard, and added maintainer email addresses.
2006-11-02 23:04:14 +00:00
Nikolaus Schulz faa68b2048 Bumped version to 0.7.0 2006-11-02 06:43:09 +00:00
Nikolaus Schulz 8de4715e5c Renamed __cvs_id__ to __svn_id__. 2006-11-02 06:40:31 +00:00
Nikolaus Schulz 58f67ff286 Changelog update: added IMAP error reporting 2006-11-02 05:49:18 +00:00
Nikolaus Schulz 0278901ba1 Added a note to the manpage that --pwfile will not work if archiving folders
from several IMAP accounts.
2006-11-02 05:45:26 +00:00
Nikolaus Schulz cb48d392fa TODO update. Added: IMAP url clutter/password leakage, unfriendly locking
practice.  Removed: only prompt for IMAP password when running in terminal.
2006-11-02 05:43:33 +00:00
Nikolaus Schulz 46f9aa44a9 Split the final stats message in two lines, because it might otherwise linewrap. 2006-11-02 05:36:17 +00:00
Nikolaus Schulz 810dea1bf5 Made IMAP password prompt a tad bit more verbose. 2006-11-01 21:05:10 +00:00
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