Mercurial > dovecot > core-2.2
annotate TODO @ 17629:edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
author | Stephan Bosch <stephan@rename-it.nl> |
---|---|
date | Mon, 21 Jul 2014 10:54:05 +0300 |
parents | 00fc1e040603 |
children | 42b5cde2d560 |
rev | line source |
---|---|
16199 | 1 - dsync: delete foo, rename bar foo -> foo, foo-temp-1 |
2 - dsync+imapc: | |
3 - mailbox list could be synced pretty optimally by ignoring | |
4 (name, uidvalidity) matches. for the left if uidvalidities are unique | |
5 and can be matched -> rename mailbox. | |
6 - GUID-less sync could optionally use just rfc822.size [and internaldate] | |
7 to match messages. | |
16300 | 8 - why does it use separate FETCH INTERNALDATE + FETCH BODY[HEADER] |
16199 | 9 |
16523 | 10 - virtual plugin doesn't verify the index file's data, crashes if broken. |
11 - imapc {} groups | |
12 - libsasl: use it in imapc, pop3c, managesieve-login, doveadm auth | |
13 - nonblocking passdb + blocking passdb -> deinit -> nonblocking passdb gets | |
14 aborted -> calls auth_worker_call() which crashes because deinit is | |
15 already done? | |
16 - ldap lookups should be done via auth worker processes? maybe automatically | |
17 if the lookups are queuing start creating workers? although multiple LDAP | |
18 connections within the same process would work too.. | |
19 - per-msg checksums? per-cache-msg checksums? per-log record checksums? | |
20 - lazy_expunge_only_last_instance=yes + mdbox doesn't work, because refcounts | |
21 don't update immediately | |
16199 | 22 - lib-ssl-iostream: ssl_get_last_error() should return also syscall errors |
23 instead of being NULL. most importantly handle handshake code. | |
15875 | 24 - if transaction log file corruption is noticed, make sure new dovecot.index |
25 snapshot gets written and don't mark the whole file corrupted.. rather maybe | |
26 just rotate and truncate it | |
16199 | 27 - mdbox: purging in alt storage could create files back to alt storage |
15278 | 28 - LAYOUT=index: |
29 - force-resync should fix the index, finding any missing mailboxes, same | |
30 for when internally detecting the error | |
31 - see if there are any race conditions? and check other error handling | |
32 - after doing a lot of changes the list's memory pool keeps growing. | |
33 do an occasional re-parsing to clear the pool | |
34 - quota recalc + dict-file [+acl?] assert-crashes in !indexing->syncing | |
15875 | 35 - imaptest: add condstore, qresync tests |
36 | |
16272 | 37 - SASL client library, initially supporting only PLAIN and plugins. Use it |
38 everywhere we currently use hardcoded PLAIN (proxy, doveadm, ..) | |
15875 | 39 - zlib plugin should do caching similar to binary fetches. otherwise |
40 partial fetches from large compressed mails are hopelessly slow. | |
41 - Track highestmodseq always, just don't keep per-message modseqs unless | |
42 they're enabled. Then don't return [NOMODSEQ] on select. | |
15278 | 43 - URLAUTH: if client tries to access nonexistent user, do a delay in |
44 imap-urlauth-client.c (AFTER destroying the worker) | |
45 - special response in the control connection to make the imap-urlauth | |
46 master wait before starting a new worker | |
15357 | 47 - shared user should get settings from userdb extra fields, especially |
48 plugin/quota_rule to get different quota limits for shared mailboxes. | |
49 the problem is that user doesn't currently have set_parser available, | |
50 and adding it would probably waste memory.. | |
51 - auth_debug[_passwords]=yes ability for specific users via doveadm. for | |
52 both login-common and auth | |
15278 | 53 - settings parsing is horribly bloaty |
14926
9c69df65af7b
Simplified hash table union now that it again works only with pointers.
Timo Sirainen <tss@iki.fi>
parents:
14865
diff
changeset
|
54 - doveadm: if running via doveadm-server and it fails, say something about |
9c69df65af7b
Simplified hash table union now that it again works only with pointers.
Timo Sirainen <tss@iki.fi>
parents:
14865
diff
changeset
|
55 error being in the log |
14753 | 56 - indexer-worker and maybe others (doveadm?) could support dropping privileges |
57 permanently when service_count=1. Note that LMTP can't with multiple RCPT | |
58 TOs. | |
59 - after reading whole message text, update has_nul-state to cache | |
14585 | 60 - FIFOs maybe should be counted as connections, but unlisten should |
61 unlink+reopen it in master? | |
14140 | 62 - lmtp client/proxy: Handle multiline replies better |
15875 | 63 - lmtp: support DSN extension (especially ORCPT) |
14140 | 64 - recreate mailbox -> existing sessions log "indexid changed" error |
13907 | 65 - add message/mime limits |
13677 | 66 - imapc: |
67 - prefetching to THREAD and SORT | |
68 - check all imap extensions and see if some don't work (condstore) | |
13900 | 69 - per-namespace imapc_* settings? create a way to "copy" a settings struct, |
70 so mail_storage_settings are copied to mail_namespace_settings. use the | |
71 change tracking to figure out what settings are namespace-specific. | |
13677 | 72 |
15940 | 73 - doveadm import: add -d parameter to deduplicate mails based on their GUID |
74 (or perhaps do it by default?) | |
75 - sdbox: altmoving is done with mailbox locked. that's not necessary, it could | |
76 do the copying while unlocked and delete the primary files while locked | |
13900 | 77 - passdb, userdb { username_format } that doesn't permanently change |
78 the username | |
13470 | 79 - mdbox/sdbox index rebuild -> quota rebuild? |
13360 | 80 - solr separate attachments (patch) |
81 - sql connection pooling: Count lookup latencies, avoid servers with | |
13777 | 82 significantly higher latencies. optionally use the secondary server only |
83 as fallback | |
13360 | 84 - maildir_storage_sync_force() shouldn't do anything except find the new |
85 file, don't go expunging any more stuff or we could get recursively back to | |
86 where we started, and stuff would break | |
87 - imap: append/copy could trigger indexing (optionally) | |
88 - fuzzy: be fuzzy about date/size | |
12756 | 89 - mailbox list index: |
90 - with in-memory indexes be sure to refresh it more often | |
91 - refreshing could refresh only the parts that are actually requested, | |
92 e.g. % | |
93 - virtual could use it to avoid keeping all mailboxes open | |
12579 | 94 - remove mail_deliver_session after all, do all the stuff transparently |
95 by hooking into mailbox_copy(). | |
96 - use this hook also to do the mail deduplication: 1) sort all destination | |
97 users, 2) create mail_user only once for each user, 3) remember in | |
98 src_mail the previously copied mail, 4) use that for mailbox_copy()ing | |
99 to following recipients | |
15875 | 100 - make sure this removes duplicate dbox mails when sieve saves mail to |
101 multiple mailboxes | |
12551 | 102 - notify_sync() could have "what changed" struct with old/new flags |
12546 | 103 - maildir: copy dovecot-shared file from parent mailbox, not root. |
104 - if global ACL path points to a file instead of a directory, read all of | |
105 them from there. support wildcards in names. | |
106 | |
12476 | 107 - master passdb preserves userdb_* extra fields. should it preserve |
108 non-userdb_* extra fields too? | |
12400 | 109 - imap, pop3: if client init fails, wait a second or two before disconnecting |
110 client. | |
111 - doveadm search savedbefore 7d could be optimized in large mailboxes.. | |
12336 | 112 - mdbox: storage rebuilding could log about changes it does |
12400 | 113 - mdbox: broken extrefs header keeps causing index rebuilds |
12231 | 114 - doveadm -A <<EOF expunge + purge + EOF |
115 - sent, drafts: .Sent/dovecot.index: modseq_hdr.log_offset too large | |
12181 | 116 - mail_max_lock_timeout error could be reported more nicely, also ones coming |
117 from lib-index | |
12095 | 118 - sql pool: if async query is pending and sync query is sent and there |
119 are no more empty connections, it should flush the async query first | |
11683 | 120 - NTLMv1 and LM should be disabled if disable_plaintext_auth=yes |
11387 | 121 - SEARCH SENT*/HEADER/etc. doesn't seem optimized when using with TEXT/BODY |
12476 | 122 - dict sql: support ignoring some search key hierarchies (e.g. acl "anyone") |
15940 | 123 - dsync: avoid sending email when it could be copied from another mailbox. |
124 probably requires storage to have guid => { instances } map? that's | |
125 rather annoying to add. | |
11273 | 126 |
10479 | 127 - mdbox |
11485 | 128 - dotlocking: cleanup should delete stale *.lock files |
10968 | 129 - purging seems to be inefficient. run imaptest for a while, get >500 |
130 files, start purging, it's slow until there are about 100 files left, | |
131 then the rest is suddenly fast. | |
132 - make sure that when reading mdbox mails sequentially the data is being | |
133 read from disk in n kB blocks and reads cross mail boundaries and when | |
134 reading the next mail it uses the previously read data in buffer | |
10479 | 135 - Add some kind of checksum about data+metadata and use it when checking |
136 consistency | |
10798 | 137 - figure out a way to efficiently trigger purging when user has too much |
138 mail expunged (e.g. keep track of total storage size, trigger purging | |
139 when it's 2*quota limit) | |
140 - keep track of total bytes in dbox storage in map header. also if | |
141 possible keep track of refcount=0 bytes. use these to optimize checks. | |
142 - save some stuff to map index header so we don't need to keep retrying | |
143 it. like when saving the lowest file_id which to bother checking. | |
144 - test crash-fixing | |
145 - mail_index_fsck() should perhaps cause dbox to be resynced? | |
10968 | 146 - optimize away reading file header? |
10479 | 147 - maildir: out-of-disk-space failures apparently cause all kinds of |
148 problems, e.g. "Expunged message reappeared", "Duplicate file entry"? | |
10163 | 149 - deliver -r <address> used as autoreplies' From-address? |
10546 | 150 - istream-seekable is inefficient. it shouldn't be reading the temp file |
151 immediately after writing to it | |
10968 | 152 - config process is handling requests too slowly. maybe add some caching. |
153 - maybe config should return all of the protocol/local/remote overrides | |
154 when requested? then the caller could do a single lookup at start and | |
155 merge them later internally. this would really help login processes. | |
156 - ipv6: auth penalty should begin from /64 and gradually grow to /48 if | |
157 necessary. and the same could be done for ipv4 as well.. | |
10052 | 158 |
10163 | 159 - ldap: fix multiple-gid support somehow |
9459 | 160 - search: use mail_get_parts() only when it's already cached. if it's not, |
161 add it to cache afterwards. | |
9004
a5555606846b
Fixed plugins to work with config rewrite.
Timo Sirainen <tss@iki.fi>
parents:
9002
diff
changeset
|
162 - dict pooling |
9015 | 163 |
9000 | 164 /* currently non-external transactions can be applied multiple times, |
165 causing multiple increments. */ | |
166 //FIXME:i_assert((t->flags & MAIL_INDEX_TRANSACTION_FLAG_EXTERNAL) != 0); | |
167 ^ appears to work now though, probably because of the added syncing stuff.. | |
168 | |
169 - use backup index in mail_index_fsck() | |
8564
3c4934783aff
Mention SSL/TLS in "plaintext auth disallowed" error.
Timo Sirainen <tss@iki.fi>
parents:
8555
diff
changeset
|
170 - proxying: support fallbacking to local (or other?) server if the first |
3c4934783aff
Mention SSL/TLS in "plaintext auth disallowed" error.
Timo Sirainen <tss@iki.fi>
parents:
8555
diff
changeset
|
171 one is down |
8555 | 172 - i_panic("Message count decreased") happens - why? |
8714
bbdbab5354d6
Implemented support for ESORT capability.
Timo Sirainen <tss@iki.fi>
parents:
8564
diff
changeset
|
173 - at least one backtrace shows client_destroy -> client_command_cancel -> |
bbdbab5354d6
Implemented support for ESORT capability.
Timo Sirainen <tss@iki.fi>
parents:
8564
diff
changeset
|
174 imap_sync_deinit |
11765 | 175 - virtual: If last message matching INTHREAD rule gets expunged, the rest of |
176 the thread doesn't go away | |
8488 | 177 - how do shared mailboxes work with plugins? |
178 - lazy-expunge, fts, etc.? | |
11974 | 179 - listescape+acl can't handle shared mailboxes with escape chars |
8488 | 180 - dovecot-acl-list: |
181 - how does it work with global acls? | |
182 - update immediately after SETACL: add/remove entries, update timestamps | |
183 - read the entire file to memory only once and keep it there, stat() later | |
184 to see if it has changed. if not, perhaps don't even bother stat()ing | |
185 dovecot-acl files? at least not that often.. | |
186 - fs quota: getquotaroot inbox vs. other-box should return different quotas | |
187 if two quotas are defined | |
8158 | 188 - auth_log_prefix setting similar to mail_log_prefix |
189 | |
190 - thread indexes: if we expunge a duplicate message-id: and we have a sibling | |
191 with identical message-id:, we can probably just move the children? | |
192 (unless there are non-sibling duplicates) | |
193 - SEARCH INTHREAD requires no thread sorting by date - don't do it | |
194 - CONDSTORE: use per-flag/per-keyword conflict checking | |
195 - QRESYNC: Drop expunges from the middle of given seq sets if possible | |
196 - use universal hash functions? | |
197 | |
198 - UIDVALIDITY changed while saving -> sync errors | |
199 - mbox: copy to Trash, manually delete copied msg, change uidvalidity, | |
200 set nextuid=1, copy again -> error | |
201 - recent_uids assert at least with mbox | |
202 - quota fs: Should values returned by quota be divided by the actual | |
203 filesystem block size instead of hardcoded DEV_BSIZE? not with AIX.. | |
7259 | 204 - squat: |
7380 | 205 - wrong indexid |
206 - fts_build_init() assertion failed: (last_uid < last_uid_locked) | |
7259 | 207 - is locking done right? it reads header without file being locked? |
208 - split after ~8 bytes? | |
7391 | 209 - expunges are delayed until more mails are added |
7259 | 210 - test replacement chars (SEARCH / SORT / Squat) |
6987 | 211 |
7449 | 212 - DEBUG: buffer overflow checking code probably doesn't handle a successful |
213 t_try_realloc() or pool_alloconly_realloc() properly | |
8738 | 214 - ldap: |
13324 | 215 - sasl bind + auth_bind=yes should probably be doing only sasl binds.. |
12400 | 216 - support multiple connections for doing auth binds |
8738 | 217 - domain lookups which set the base for user lookup |
14140 | 218 - multiple ldap values could be joined into one field with specified |
219 separator (e.g. mail_access_groups=%{ldap:gidNumber:,}) | |
8738 | 220 - implement something like: |
221 user_attrs { | |
222 uid = %{ldap:uidNumber} | |
223 home = %{ldap:homeDirectory} | |
224 quota_bytes = *:bytes=%{ldap:quota} | |
225 } | |
5621 | 226 |
9159
6324a79d3ee1
Initial commit for v2.0 master rewrite. Several features are still missing.
Timo Sirainen <tss@iki.fi>
parents:
9015
diff
changeset
|
227 - maildir+pop3 fast updates: |
6105 | 228 - don't update dovecot-uidlist if dovecot.index.cache doesn't exist / |
229 there's nothing to cache | |
230 - if all messages are expunged and there are no unknown extensions in index, | |
231 unlink dovecot.index and rotate log and add some initial useful info to | |
232 the log (uidvalidity, nextuid) | |
5621 | 233 |
6105 | 234 - maildir |
6987 | 235 - don't allow more than 26 keywords |
5621 | 236 |
5557 | 237 - file_cache: we're growing the mmap in page size blocks, which is horribly |
238 slow if mremap() doesn't exist. | |
239 | |
3087 | 240 - keywords: |
241 - add some limits to how many there can be | |
242 - don't return \* in PERMANENTFLAGS when we're full | |
243 - remove unused keywords? | |
2774 | 244 |
11273 | 245 - mail caching |
3904 | 246 - force bits should be used only for nonregistered fields |
247 - change envelope parsing not to use get_headers() so imap.envelope can | |
248 actually be cached without all the headers.. | |
6105 | 249 - if there's no other pressure for compression, we should do it when |
250 enough temp fields are ready to be dropped | |
3904 | 251 - we could try compressing same field values into a single |
252 location in cache file. | |
7259 | 253 - place some maximum limit of fields to cache file? maybe some soft and |
254 hard limits, so when soft limit is reached drop fields that have | |
255 been used only once. when hard limit is reached drop any fields to get | |
256 more space. all this to avoid cache file growing infinitely. | |
2774 | 257 |
3087 | 258 - mbox |
11273 | 259 - UID renumbering doesn't really work after all? |
12476 | 260 - still problems with CRLF mboxes.. especially with broken Content-Length |
261 headers (pointing between CR-LF?) | |
3904 | 262 - syncing existing indexes takes 4x longer than creating new one, why? |
263 - how well does dirty sync + status work? it reads the last mail every | |
264 time? not very good.. | |
265 - always add empty line. make the parser require it too? syncing should | |
266 make sure there always exists two LFs at end of file. raw-mbox-stream | |
267 should make sure the last message ends with LF even if it doesn't exist | |
268 in the file | |
269 - Quote "From ", unquote ">From " | |
4449 | 270 - COPY doesn't work to itself (lock assert crash, for now just disallowed) |
2143 | 271 |
272 - index | |
6105 | 273 - index file format changes: |
10968 | 274 - split to "old" and "new" indexes and try to avoid loading "old" into |
275 memory until needed | |
6105 | 276 - pack UIDs to beginning of file with UID ranges |
277 - use squat-like compressed uid ranges everywhere | |
6782 | 278 - write first extension intros in dovecot.index.log always with names |
279 - or better yet, drop the intro concept completely as it is now | |
280 - add "transaction boundaries" so we know which records belong to a | |
281 single transaction. | |
282 - only after that we can remove the transaction log offset | |
283 overwriting (otherwise we can get partial transactions in views) | |
2143 | 284 |
3087 | 285 - login |
286 - Digest-MD5: support integrity protection, and maybe crypting. Do it | |
287 through login process like SSL is done? | |
474 | 288 |
3087 | 289 - auth |
4449 | 290 - with blocking passdb we're not caching lookups if the password was wrong |
5557 | 291 - non-plaintext authentication doesn't support all features: |
292 - multiple passdbs don't work, only the first one is used | |
293 - auth cache's last_success password change check doesn't exist | |
9459 | 294 - auth_cache_negative_ttl doesn't check password mismatches |
4449 | 295 - dovecot-auth should limit how fast authentication requests are allowed |
296 from login processes. especially if there's one login/connection the speed | |
3087 | 297 should be something like once/sec. also limit how fast to accept new |
298 connections. | |
299 - support read-only logins. user could with alternative password get only | |
300 read-access to mails so mails could be read relatively safely with | |
301 untrusted computers. Maybe always send [ALERT] about the previous | |
302 read-only login time with IP? | |
303 | |
304 - ssl | |
305 - add setting: ssl_options = bitmask. by default we enable all openssl | |
306 workarounds, this could be used to disable some of them | |
307 - gnutls support isn't working | |
965 | 308 |
3087 | 309 - search |
6232 | 310 - message header search: we should ignore LWSP between two MIME blocks(?) |
311 - message_search_init() could accept multiple search keywords so we | |
1250 | 312 wouldn't need to call it separately for each one (so we wouldn't need |
313 to parse the message multiple times). | |
314 - Create our own extension: When searching with TEXT/BODY, return | |
315 the message text surrounding the keywords just like web search engines | |
316 do. like: SEARCH X-PRINT-MATCHES TEXT "hello" -> * SEARCH 1 "He said: | |
317 Hello world!" 2 "Hello, I'm ...". This would be especially useful with | |
318 the above attachment scanning. | |
0 | 319 |
3087 | 320 - general |
321 - things break if next_uid gets to 2^32 | |
17629
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
322 |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
323 - lib-http: |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
324 - Client: |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
325 - Handle HTTP/1.0 servers properly: |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
326 -> Transfer-Encoding is not allowed |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
327 - Implement support for priority/deadline-based scheduling. |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
328 Much like: https://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
329 - Allow handling non-idempotent requests specially |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
330 (no automatic retry, block pipeline) |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
331 - Implement support for `Range:' requests. |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
332 - Implement optional round-robin request scheduling for when |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
333 host has multiple IPs. |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
334 - Server: |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
335 - Implement API structure for virtual hosts and resources. This way, |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
336 multiple services can coexist independently on the same HTTP server. |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
337 - Implement support for `Range:' requests. |
edcbd75b76ba
lib-http: Added initial support for server-side HTTP API.
Stephan Bosch <stephan@rename-it.nl>
parents:
16958
diff
changeset
|
338 - Review compliance with RFC 7230 and RFC 7231 |