Mercurial > dovecot > original-hg > dovecot-1.2
annotate TODO @ 7449:4607141a6bdc HEAD 1.1.rc4
Released v1.1.rc4.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 01 Apr 2008 20:40:42 +0300 |
parents | c73d6224a96b |
children | 3b09af6458e5 |
rev | line source |
---|---|
7449 | 1 - index: clear recent flags created by v1.0 at some point so the bit may be |
2 reused for something useful later. | |
3 - mbox: mail_privileged_group should be used when creating INBOX?.. | |
4 - convert plugin: Create a r/w lock for a file. It's read-locked if | |
5 conversion isn't wanted and released when process dies. If conversion is | |
6 wanted and write-lock succeeds, conversion is done, if write-lock doesn't | |
7 succeed it fallbacks to using the old storage. When process is exiting it | |
8 again tries to write-lock and do the conversion. Add a parameter that | |
9 specifies if conversion should be done. | |
7380 | 10 - dbox: |
11 - "File unexpectedly lost" doesn't get fixed by itself | |
12 - doesn't call fsync | |
7259 | 13 - do something about From_-lines splitting mails with mboxes |
14 - lucene: handle replacement chars? | |
15 - squat: | |
7380 | 16 - wrong indexid |
17 - fts_build_init() assertion failed: (last_uid < last_uid_locked) | |
18 - nfs support (cache flushes, how can write fail with ESTALE?) | |
7259 | 19 - is locking done right? it reads header without file being locked? |
20 - split after ~8 bytes? | |
7391 | 21 - expunges are delayed until more mails are added |
7259 | 22 - test replacement chars (SEARCH / SORT / Squat) |
6987 | 23 |
7449 | 24 - DEBUG: buffer overflow checking code probably doesn't handle a successful |
25 t_try_realloc() or pool_alloconly_realloc() properly | |
6987 | 26 - cache: compress when we can drop temporary fields. |
27 - POP3 UIDL caching | |
28 - ACL: "foo/bar" in public namespace -> LIST "" % doesn't show "foo" | |
29 - new %modifier for reverse DNS lookups with a cache | |
30 - auth_gssapi_hostname = %Xl | |
31 - proxying would also want DNS lookups, but not reverse.. | |
7072 | 32 - ldap domain lookups which set the base for user lookup |
5621 | 33 |
6105 | 34 - maildir+pop3/deliver fast updates: |
35 - with locking enabled, pop3 could just keep the one and same sync lock and | |
36 do the whole thing using sync transaction | |
37 - don't update dovecot-uidlist if dovecot.index.cache doesn't exist / | |
38 there's nothing to cache | |
39 - if all messages are expunged and there are no unknown extensions in index, | |
40 unlink dovecot.index and rotate log and add some initial useful info to | |
41 the log (uidvalidity, nextuid) | |
5621 | 42 |
6105 | 43 - maildir |
6987 | 44 - don't allow more than 26 keywords |
6105 | 45 - physical separator could be configurable |
46 - setting flags to same as they already are causes unnecessary | |
47 rename()s with identical parameters | |
48 - deliver+maildir: if new mails are in new/ or cur/ they're not added to | |
49 dovecot-uidlist but newly saved mails are, so UIDs will be in wrong order | |
50 - maildir_copy_with_hardlinks: We're currently first hardlinking to tmp/ and | |
51 then rename()ing. This wouldn't be necessary if uidlist syncing noticed | |
52 that someone else already had added them to uidlist, and the existing UIDs | |
53 could be assigned to them in the index. | |
6754 | 54 - copying should copy already-cached data |
6105 | 55 - maildir_copy_preserve_filename=yes has a race condition causing "Append with |
56 UID n, but next_uid = y" errors when quota plugin is loaded. Practically | |
57 won't happen except in stress testing. | |
5621 | 58 |
6105 | 59 - mbox |
60 - UID renumbering doesn't really work after all? | |
61 - still problems with CRLF mboxes.. | |
62 | |
6987 | 63 - mail_log: log appends. support from and subject fields |
64 - proxy: If remote server disconnects on login: | |
65 login: tried to change state 2 -> 2 | |
6105 | 66 - logging consistency: |
67 http://www.dovecot.org/list/dovecot/2007-April/021532.html | |
68 - EXPUNGE command in read-only mailbox should give an error message if | |
69 there are messages marked as \Deleted? | |
70 - dovecot -o setting=something overriding | |
5557 | 71 - file_cache: we're growing the mmap in page size blocks, which is horribly |
72 slow if mremap() doesn't exist. | |
73 - login_max_processes_count shouldn't count proxying processes | |
74 | |
75 - Allow %variables in mail_chroot setting | |
76 - something should be done to umask setting. we should be creating files with | |
77 0666 or 0777 and rely on umask, but we shouldn't do that unless we're sure | |
78 that the umask is the wanted one (ie. imap/pop3 process wasn't started | |
79 directly) | |
80 - ssl_verify_client_cert isn't working if the SSL cert doesn't have CRL | |
81 | |
3087 | 82 - keywords: |
83 - add some limits to how many there can be | |
84 - don't return \* in PERMANENTFLAGS when we're full | |
85 - remove unused keywords? | |
2774 | 86 |
87 - caching | |
3904 | 88 - force bits should be used only for nonregistered fields |
89 - change envelope parsing not to use get_headers() so imap.envelope can | |
90 actually be cached without all the headers.. | |
6105 | 91 - if there's no other pressure for compression, we should do it when |
92 enough temp fields are ready to be dropped | |
3904 | 93 - we could try compressing same field values into a single |
94 location in cache file. | |
7259 | 95 - place some maximum limit of fields to cache file? maybe some soft and |
96 hard limits, so when soft limit is reached drop fields that have | |
97 been used only once. when hard limit is reached drop any fields to get | |
98 more space. all this to avoid cache file growing infinitely. | |
2774 | 99 |
3087 | 100 - mbox |
4449 | 101 - dirty state should be stored to index (with mbox_very_dirty_syncs) |
102 - after some locking timeouts: mbox-lock.c: line 518 (mbox_lock): | |
103 assertion failed: (lock_type == F_RDLCK || mbox->mbox_lock_type != F_RDLCK) | |
104 - controldir for mboxes too and place subscriptions file there? | |
3904 | 105 - syncing existing indexes takes 4x longer than creating new one, why? |
106 - how well does dirty sync + status work? it reads the last mail every | |
107 time? not very good.. | |
108 - always add empty line. make the parser require it too? syncing should | |
109 make sure there always exists two LFs at end of file. raw-mbox-stream | |
110 should make sure the last message ends with LF even if it doesn't exist | |
111 in the file | |
112 - Quote "From ", unquote ">From " | |
4449 | 113 - COPY doesn't work to itself (lock assert crash, for now just disallowed) |
2143 | 114 - if we can't create dotlock file for mbox, make sure it still can be |
115 selected in read-only state | |
116 | |
117 - index | |
118 - if log file is lost, generate it from old and new index | |
3087 | 119 - read-only support for mailboxes where we don't have write-access |
6105 | 120 - index file format changes: |
121 - pack UIDs to beginning of file with UID ranges | |
122 - use squat-like compressed uid ranges everywhere | |
6782 | 123 - write first extension intros in dovecot.index.log always with names |
124 - or better yet, drop the intro concept completely as it is now | |
125 - add "transaction boundaries" so we know which records belong to a | |
126 single transaction. | |
127 - only after that we can remove the transaction log offset | |
128 overwriting (otherwise we can get partial transactions in views) | |
2143 | 129 |
4449 | 130 - namespaces |
131 - namespaces: add new "auto_disable" flag so if the mailbox can't be opened | |
132 (eg. file doesn't exist), just ignore the problem and disable the | |
133 namespace | |
134 | |
135 - lib-storage | |
5557 | 136 - rename: allow moving between storages, as long as they're of same type |
4449 | 137 - x search charset asdf all -> should fail |
3087 | 138 - should we allow following symlinks in mbox/maildirs? they are now. |
139 - if we implement shared mailboxes with shared indexes, never do that or | |
140 others could symlink your personal mailboxes and see the indexes | |
141 created for it which may contain envelope etc. data | |
142 - this allows circular mailbox hierarchies which should be prevented by | |
143 eg. allowing max. 20 hierarchies. | |
144 | |
145 - login | |
4449 | 146 - when pipelining login command + post-login commands, login process should |
147 pass the command to imap/pop3 process (at least one pop3 client does this) | |
148 - imap-login: Master sent reply with unknown tag 1. client closed | |
149 connection at the exact same time master was logging it in? | |
150 see master_request_abort() | |
3087 | 151 - Digest-MD5: support integrity protection, and maybe crypting. Do it |
152 through login process like SSL is done? | |
153 - x login foo bar | |
154 x NO Authentication failed. | |
155 x login cras pass | |
156 * BYE Disconnected for inactivity. | |
157 ^ but it's not disconnecting! (buggy dovecot-auth not replying) | |
3744 | 158 probably because userdb lookup didn't reply, and fd was already sent |
159 for master.. should imap-login be handling it anymore?.. | |
3087 | 160 - imap-login: Authenticate PLAIN failed: Authentication failed: |
161 Authentication server isn't connected, try again later.. [127.0.0.1] | |
162 ^ NO Authentication failed. (should be Temporary login failure!) | |
163 - if auth process dies, login process should retry authentication if | |
164 possible. or if not, disconnect the client so it doesn't think the auth | |
165 failed. | |
166 - send client IP immediately after accept() to master process. make sure | |
167 master shows the IP if login dies unexpectedly. master should probably | |
168 also kill the login process if it doesn't kill itself soon enough.. or | |
169 maybe just log the IP immediately. | |
474 | 170 |
3087 | 171 - auth |
4449 | 172 - with blocking passdb we're not caching lookups if the password was wrong |
5557 | 173 - non-plaintext authentication doesn't support all features: |
174 - multiple passdbs don't work, only the first one is used | |
175 - auth cache's last_success password change check doesn't exist | |
6987 | 176 - allow returning multiple gids |
3087 | 177 - SIGHUP restarts auth processes .. but does it wait until they've finished |
178 with all requests? no. | |
179 - does dovecot-auth really break when it runs out of fds? | |
4449 | 180 - dovecot-auth should limit how fast authentication requests are allowed |
181 from login processes. especially if there's one login/connection the speed | |
3087 | 182 should be something like once/sec. also limit how fast to accept new |
183 connections. | |
184 - support read-only logins. user could with alternative password get only | |
185 read-access to mails so mails could be read relatively safely with | |
186 untrusted computers. Maybe always send [ALERT] about the previous | |
187 read-only login time with IP? | |
4449 | 188 - dovecot-auth workers: create a separate dovecot-pam worker which shares |
189 pretty much all code with dovecot-auth worker but isn't linked against | |
190 any libraries. or..? this might be difficult to do, especially because the | |
191 workers currently can handle any kind of passdb/userb requests. perhaps | |
192 there should be a completely separate simple PAM authenticator binary. | |
526 | 193 |
3087 | 194 - master |
195 - configurable syslog prefix | |
3450 | 196 - if there are duplicate settings, complain about it |
3087 | 197 |
198 - quota | |
199 - if dovecot-uidlist can't be written, assume the new mails have UIDs | |
200 beginning from uidlist.next_uid. Whenever mails are expunged, overwrite | |
201 the next_uid field with the current highest next_uid. Whenever we have | |
202 assumed UIDs and uidlist gets updated, throw the client out with | |
203 "inconsist mailbox". | |
204 | |
205 - ssl | |
206 - add setting: ssl_options = bitmask. by default we enable all openssl | |
207 workarounds, this could be used to disable some of them | |
208 - gnutls support isn't working | |
965 | 209 |
3087 | 210 - search |
6232 | 211 - message header search: we should ignore LWSP between two MIME blocks(?) |
212 - message_search_init() could accept multiple search keywords so we | |
1250 | 213 wouldn't need to call it separately for each one (so we wouldn't need |
214 to parse the message multiple times). | |
215 - could optionally support scanning inside file attachments and use | |
216 plugins to extract text out of them (word, excel, pdf, etc. etc.) | |
217 - Create our own extension: When searching with TEXT/BODY, return | |
218 the message text surrounding the keywords just like web search engines | |
219 do. like: SEARCH X-PRINT-MATCHES TEXT "hello" -> * SEARCH 1 "He said: | |
220 Hello world!" 2 "Hello, I'm ...". This would be especially useful with | |
221 the above attachment scanning. | |
0 | 222 |
4449 | 223 - deliver |
5557 | 224 - recipient_delimiter setting so user+mailbox@domain works directly |
4449 | 225 |
3087 | 226 - general |
4449 | 227 - stop using atol(), atoi(), strtoul() etc. in places where we actually |
228 care about what they return, and rather create our own function which | |
229 checks if the input overflows the integer, and if so call i_fatal() | |
3087 | 230 - rfc2231 continuation support (useless?) |
1553 | 231 - rfc2557 support for BODYSTRUCTURE, as specified by RFC3501 |
4449 | 232 - LMTP server |
233 - ability to build plugins statically into the binaries | |
3087 | 234 - ~/.dovecotrc to override system wide settings. namespace settings should |
235 override all the previous namespace settings instead of adding new. | |
236 - things break if next_uid gets to 2^32 | |
376
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
237 |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
238 capabilities: |
4449 | 239 - preferrably all should be implemented as plugins |
376
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
240 - possibility to disable them from config file |
3087 | 241 - THREAD=ORDEREDSUBJECT - although pretty useless I'd think. |
5621 | 242 - acl (rfc4314) |
376
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
243 - id (rfc2971) |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
244 - must be configurable what gets sent, default to only name=Dovecot |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
245 - separate pre/post-login settings |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
246 - optionally log configured parts of the client information, but only |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
247 once, probably at the same time as logging "Logged in", |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
248 "Disconnected", etc. |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
249 - remember to force truncating values longer than 30 chars, |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
250 especially before logging |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
251 - mailbox-referrals (rfc2193) |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
252 - this is useful whenever we would otherwise need to make the |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
253 connection ourself. for example load balancing and shared mailboxes |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
254 requiring another UID to run. |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
255 - this rfc defines no exact way for server to detect if client |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
256 supports referrals or not. I don't think there's much point in |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
257 supporting only referrals, as most clients don't support them. |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
258 Instead we should return referrals when we know that client |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
259 supports them, otherwise do the connecting ourself. If client |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
260 issues RLIST or RLSUB command, it's safe to assume it supports |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
261 referrals. |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
262 - for load balancing this works just fine, but what about shared |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
263 mailboxes which require different UID? If we login with our own |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
264 username, we end up with our own UID instead of what we wanted. |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
265 IMAP URLs don't support separated authorization id which would |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
266 have made this very easy.. We could give the "userid@group" as |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
267 userid, but clients probably treat it as different userid and |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
268 ask the password again. |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
269 - problems, problems, .. maybe not worth the trouble. |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
270 - drafts: |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
271 - http://www.imc.org/ids.html |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
272 - annotate (draft-ietf-imapext-annotate) |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
273 - per-message annotations. this will be major change. especially |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
274 because currently there's no suitable storage for them, and |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
275 they'll probably change all the time.. maybe if we moved into |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
276 berkeley db to store the .data file and these annotations. |
1178 | 277 - this is separate problem from index files. indexes are treated as |
278 temporary files, annotations are permanent data. we'd have to | |
279 support non-db way to do this too, which would probably be just a | |
280 simple (slow) text file. | |
5621 | 281 - use lib-dict probably |
282 - metadata (draft-daboo-imap-annotatemore) | |
376
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
283 - server and per-mailbox annotations. much easier than |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
284 per-message annotations, but they'd be easier to place into |
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
285 db as well. |
5621 | 286 - lib-dict, again |
376
fd1fc4cf11b7
updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents:
340
diff
changeset
|
287 - binary (draft-nerenberg-imap-binary) |