"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 Integrate --debug-imap option into yet-to-be-implemented -vv switch?
2 I had the idea to provide separate debugging info levels anyway, see --debug
3 below.
4
5 Gracefully close IMAP connection upon unexptected error (currently archivemail
6 just terminates).
7
8 LOCKING & Co:
9 * Block signals while writing changed mailbox back.
10 * Double-check the entire locking code.
11
12 Seems like existing archives are not read or validated in any way. New archive
13 data is blindly appended... Probably okay, but should be documented.
14
15 IMAP SEARCH BEFORE disregards time and timezone information. This should at
16 least be documented. E.g. I've found that '-d 0' didn't match all messages in
17 an IMAP mailbox. This is because the SEARCH key is (BEFORE 14-Nov-2007) on 14
18 November, not matching messages that arrived today. (This problem is probably
19 fixed for most use cases by the --all option.)
20
21 Document mbox format issues: link to
22 http://homepages.tesco.net/~J.deBoynePollard/FGA/mail-mbox-formats.html,
23 qmail mbox manpage, Debian manpage, RFC 4155. Document what mbox format we can
24 read, and what we write.
25 FIXME: we cannot yet parse rfc 2822 addr-spec stuff like quoted local-parts in
26 return-path addresses.
27
28 Minor annoyance: when a From_ line is generated, guess_delivery_time() reports
29 the used date header a second time.
30
31 Check sf.net and Debian BTS for new bugs. Again.
32
33 IMAP: ensure mailbox archives are properly named. Currently imap folder names
34 are mapped like this:
35
36 IMAP URL | resulting mbox_archive
37 ------------+------------------------
38 test.box | test.box_archive.gz
39 test/box | box_archive.gz
40
41
42 Implement --include-draft. But before, think about it again. (This is feature
43 request #1569305.)
44
45 Implement a fallback if an IMAP server doesn't support SEARCH. (Ouch!)
46
47 Add IMAP tests to the testsuite (upload test messages with IMAP "APPEND
48 date-string"). This should be done without any real network I/O.
49
50 Try to port archivemail to email.message and the new mailboxes in Python 2.5.
51 Is these flexible enough for our needs?
52
53 Line out what we want with respect to multiple selection criteria.
54 Some make sense, but this easily gets too complex, and if only it's a hassle
55 with adding all the options. Hm.
56
57 Reject patch #1036022 "Added option to inverse date compare" after cooling down
58 because the patch is both stupid (copy+paste code) and broken. Don't see why
59 anyone should want this/we should support it.
60 If this is reasonable *at all*, I think we'd better go for all the complexity
61 to honour _two_ cut off dates (see Debian bug "#184124: archivemail: -D and -d
62 should not be incompatible", which is a comparably half-baken thought). </rant>
63
64 Add --debug or -vv switch, and move the printing of diagnostic info for each
65 message to --debug.
66
67 Perhaps add some more nice stuff like printing of subject, sender...
68 See tracker #868714 "added stats option to archivemail", which has a point.
69 Message-Ids are useful for diagnosis, but not very nice to read for humans.
70
71 Be a nicer citizen with respect to mailbox locking.
72
73 Perhaps prune/shorten IMAP mailbox URLs in messages?
74 They may be quite long and may contain the sensitive password.
75 Also shows up in the process list...
76 Perhaps find a clean, lean replacement for all that clutter in the IMAP urls.
77
78 Require --output-dir for IMAP archiving? Otherwise we just drop the archive in
79 in the current working directory.
80
81 Check all items below, which are from the original author. :-)
82
83 .archivemailrc support
84
85 When you get a file-not-found in the 6th mailbox of 10, it aborts the whole
86 run. Better to fail gracefully and keep going.
87
88 Add more tests (see top of test_archivemail)
89
90 We need some better checking to see if we are really looking at a valid
91 mbox-format mailbox.
92
93 Add an option to not cut threads.
94
95 Add MMDF mailbox support
96
97 Add Babyl mailbox support
98
99 Add option to archive depending on mailbox size threshold
100 - is this a good idea?
101
102 Add option to archive depending on number of messages
103 - is this a good idea?