aboutsummaryrefslogtreecommitdiffstats
path: root/TODO
blob: 577356acf58b4b28912ad400d70617bc82af56e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Release blockers for 0.7.1
--------------------------

Implement --all. (?)  Check patch from #1764846.

Check sf.net and Debian BTS for new bugs.  Again.

------------ EO: release blockers -------------

Implement --include-draft.  But before, think about it again.  (This is feature
request #1569305.)

Create temporary archive mbox in /tmp only if we don't have write permissions in
the mbox directory.  Currently, if /tmp resides on another filesystem, we have
to copy the entire box to its destination. 

Implement a fallback if an IMAP server doesn't support SEARCH. (Ouch!)

Add IMAP tests to the testsuite (upload test messages with IMAP "APPEND
date-string"). 

Port to email.message and the new mailboxes in Python 2.5.

Add recursive archiving of mail subfolders? 

Line out what we want with respect to multiple selection criteria. 
Some make sense, but this easily gets too complex, and if only it's a hassle
with adding all the options.  Hm.  

Reject patch #1036022 "Added option to inverse date compare" after cooling down
because the patch is both stupid (copy+paste code) and broken.  Don't see why
anyone should want this/we should support it. 
If this is reasonable *at all*, I think we'd better go for all the complexity
to honour _two_ cut off dates (see Debian bug "#184124: archivemail: -D and -d
should not be incompatible", which is a comparably half-baken thought). </rant>

Add --debug or -vv switch, and move the printing of diagnostic info for each
message to --debug.  

Perhaps add some more nice stuff like printing of subject, sender... 
See tracker #868714 "added stats option to archivemail", which has a point.
Message-Ids are useful for diagnosis, but not very nice to read for humans. 

Regarding the --archive-name option:
* Do we want this?  Probably, it adds flexibility.
* I think we should expand date format strings like we do with --suffix
* Hmm, --output-dir overrides os.dirname(archive_name)... 
  If no output_dir is given, use $PWD like we do for IMAP, or require -o?
* Provide short option -a?  Not sure. 
* The patch in #905657 is not bad.  The Debian package also has a custom
  --archive-name option, but with a worse implementation.

Be a nicer citizen with respect to mailbox locking. 

Perhaps prune/shorten IMAP mailbox URLs in messages?
They may be quite long and may contain the sensitive password.
Also shows up in the process list... 
Perhaps find a clean, lean replacement for all that clutter in the IMAP urls.

Require --output-dir for IMAP archiving?  Otherwise we just drop the archive in
in the current working directory.

Switch to fcntl(2) locking?  That would be NFS-safe.  Perhaps make the locking
method configurable?

Check all items below, which are from the original author. :-)

.archivemailrc support

Specify an option to not seteuid() when run as root?

When you get a file-not-found in the 6th mailbox of 10, it aborts the whole
run. Better to fail gracefully and keep going.

Think about the best way to specify the names of archives created with
possibly an --archive-name option.

Add more tests (see top of test_archivemail.py)

We need some better checking to see if we are really looking at a valid
mbox-format mailbox.

Lock any original .gz files 
- is this necessary?

Check for symlink attacks for tempfiles (although we don't use /var/tmp)

Add an option to not cut threads.

Add MMDF mailbox support

Add Babyl mailbox support

Add option to archive depending on mailbox size threshold 
- is this a good idea?

Add option to archive depending on number of messages
- is this a good idea?