annotate TODO @ 6782:4628e3ec65e4 HEAD 1.1.beta8

Released v1.1.beta8.
author Timo Sirainen <tss@iki.fi>
date Sun, 11 Nov 2007 19:06:38 +0200
parents 4b92160ac256
children ad1361eee1ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6782
4628e3ec65e4 Released v1.1.beta8.
Timo Sirainen <tss@iki.fi>
parents: 6754
diff changeset
1 - proxying should support connecting to multiple IPs or if nothing works
4628e3ec65e4 Released v1.1.beta8.
Timo Sirainen <tss@iki.fi>
parents: 6754
diff changeset
2 fallbacking to logging in normally (optionally).
6754
4b92160ac256 Updated
Timo Sirainen <tss@iki.fi>
parents: 6641
diff changeset
3 - imap-login: file client-authenticate.c: line 193 (sasl_callback): assertion failed: (!client->destroyed || reply == SASL_SERVER_REPLY_CLIENT_ERROR || reply == SASL_SERVER_REPLY_MASTER_FAILED)
4b92160ac256 Updated
Timo Sirainen <tss@iki.fi>
parents: 6641
diff changeset
4 - login_process_per_connection=yes, HUP
4b92160ac256 Updated
Timo Sirainen <tss@iki.fi>
parents: 6641
diff changeset
5 - index-sync.c: line 273 (index_mailbox_expunge_unseen_recent): assertion failed: (mail_index_view_is_inconsistent(ibox->view))
4b92160ac256 Updated
Timo Sirainen <tss@iki.fi>
parents: 6641
diff changeset
6 - ^ imaptest -> ctrl-c
4b92160ac256 Updated
Timo Sirainen <tss@iki.fi>
parents: 6641
diff changeset
7 - dbox: inotify should wait on .log
6641
89dba9d9fa01 Updated
Timo Sirainen <tss@iki.fi>
parents: 6608
diff changeset
8 - ACL: "foo/bar" in public namespace -> LIST "" % doesn't show "foo"
6608
c0d18ea33806 Updated
Timo Sirainen <tss@iki.fi>
parents: 6402
diff changeset
9 - search: flag searching is too slow with huge mailboxes. at least optimize
c0d18ea33806 Updated
Timo Sirainen <tss@iki.fi>
parents: 6402
diff changeset
10 deleted search.
c0d18ea33806 Updated
Timo Sirainen <tss@iki.fi>
parents: 6402
diff changeset
11 - group privilege handling is ugly/broken. if gid+egid == wanted gid, no
c0d18ea33806 Updated
Timo Sirainen <tss@iki.fi>
parents: 6402
diff changeset
12 checking is done if there are extra groups that should be dropped. otherwise
c0d18ea33806 Updated
Timo Sirainen <tss@iki.fi>
parents: 6402
diff changeset
13 if we're not root, setgroups() will fail with EPERM, and the error message
c0d18ea33806 Updated
Timo Sirainen <tss@iki.fi>
parents: 6402
diff changeset
14 is difficult to understand.
6402
31f374bcbd31 Updated
Timo Sirainen <tss@iki.fi>
parents: 6232
diff changeset
15 - message-header-decode.c: handle decoding errors by fallbacking to simply
31f374bcbd31 Updated
Timo Sirainen <tss@iki.fi>
parents: 6232
diff changeset
16 returning the data as ASCII (the whole thing, beginning from =?)
31f374bcbd31 Updated
Timo Sirainen <tss@iki.fi>
parents: 6232
diff changeset
17 - dbox: clean up temp.* files once in a while
31f374bcbd31 Updated
Timo Sirainen <tss@iki.fi>
parents: 6232
diff changeset
18 - expunged messages' flags may get updated in views where they're not yet
31f374bcbd31 Updated
Timo Sirainen <tss@iki.fi>
parents: 6232
diff changeset
19 expunged (e.g. "expunge uid 2", "+flags \seen uid 1:3")
31f374bcbd31 Updated
Timo Sirainen <tss@iki.fi>
parents: 6232
diff changeset
20 - POP3 UIDL caching
31f374bcbd31 Updated
Timo Sirainen <tss@iki.fi>
parents: 6232
diff changeset
21 - Cydir/dbox doesn't respect LIST RETURN (CHILDREN)
6232
8d4fa6f0b7e6 Released v1.1.alpha2.
Timo Sirainen <tss@iki.fi>
parents: 6105
diff changeset
22 - SORT: Invalid input is supposed to be sorted last.
6105
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
23 - indexes: are cache prev_offsets updated right?
5621
eba408782747 updated
Timo Sirainen <tss@iki.fi>
parents: 5557
diff changeset
24
6105
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
25 - maildir+pop3/deliver fast updates:
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
26 - with locking enabled, pop3 could just keep the one and same sync lock and
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
27 do the whole thing using sync transaction
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
28 - don't update dovecot-uidlist if dovecot.index.cache doesn't exist /
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
29 there's nothing to cache
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
30 - if all messages are expunged and there are no unknown extensions in index,
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
31 unlink dovecot.index and rotate log and add some initial useful info to
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
32 the log (uidvalidity, nextuid)
5621
eba408782747 updated
Timo Sirainen <tss@iki.fi>
parents: 5557
diff changeset
33
6105
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
34 - maildir
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
35 - physical separator could be configurable
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
36 - setting flags to same as they already are causes unnecessary
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
37 rename()s with identical parameters
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
38 - deliver+maildir: if new mails are in new/ or cur/ they're not added to
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
39 dovecot-uidlist but newly saved mails are, so UIDs will be in wrong order
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
40 - maildir_copy_with_hardlinks: We're currently first hardlinking to tmp/ and
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
41 then rename()ing. This wouldn't be necessary if uidlist syncing noticed
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
42 that someone else already had added them to uidlist, and the existing UIDs
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
43 could be assigned to them in the index.
6754
4b92160ac256 Updated
Timo Sirainen <tss@iki.fi>
parents: 6641
diff changeset
44 - copying should copy already-cached data
6105
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
45 - maildir_copy_preserve_filename=yes has a race condition causing "Append with
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
46 UID n, but next_uid = y" errors when quota plugin is loaded. Practically
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
47 won't happen except in stress testing.
5621
eba408782747 updated
Timo Sirainen <tss@iki.fi>
parents: 5557
diff changeset
48
6105
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
49 - mbox
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
50 - UID renumbering doesn't really work after all?
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
51 - still problems with CRLF mboxes..
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
52
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
53 - Mailbox list indexes
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
54 - Should probably check dovecot.index.log stamp/size too so that non-zero
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
55 recent counters get reset
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
56 - Why are updates so slow?
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
57 - Support for FS layout
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
58
5557
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
59 - don't use squat with header if index doesn't exist
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
60 - don't use squat index if searching only a couple of mails
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
61 - threading: (all done?)
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
62 - duplicate: mark original as rebuild
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
63 - re-parent (also reparenting to root): mark as rebuild
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
64 - unref: if refcount drops to zero, set children's parent=0 (can happen
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
65 if there are only grandchildren and dummy children)
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
66 - mail-hash: stat() and reopen if needed
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
67 - subjects: group roots togethere already while gathering subjects. then
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
68 go through them and sort them to get their sent date. then start writing
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
69 the nodes out. sorting needs to these cases:
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
70 1) root is dummy -> just sort their children. if there are dummies
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
71 they're skipped and their children ascend
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
72 2) root is non-dummy -> there are no dummies at all in the thread.
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
73 the root has the oldest date in the thread. after the root if there
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
74 are re: or fwd: messages they're children to the root. if there are
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
75 more messages after that, a new dummy parent needs to be created,
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
76 and the rest of the messages need to be sorted before sending
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
77
6105
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
78 - mail_log: log appends
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
79 - pop3 proxying(?): dovecot: login: tried to change state 2 -> 2
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
80 - logging consistency:
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
81 http://www.dovecot.org/list/dovecot/2007-April/021532.html
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
82 - EXPUNGE command in read-only mailbox should give an error message if
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
83 there are messages marked as \Deleted?
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
84 - dovecot -o setting=something overriding
5557
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
85 - file_cache: we're growing the mmap in page size blocks, which is horribly
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
86 slow if mremap() doesn't exist.
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
87 - login_max_processes_count shouldn't count proxying processes
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
88
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
89 - Allow %variables in mail_chroot setting
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
90 - something should be done to umask setting. we should be creating files with
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
91 0666 or 0777 and rely on umask, but we shouldn't do that unless we're sure
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
92 that the umask is the wanted one (ie. imap/pop3 process wasn't started
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
93 directly)
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
94 - ssl_verify_client_cert isn't working if the SSL cert doesn't have CRL
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
95
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
96 - keywords:
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
97 - add some limits to how many there can be
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
98 - don't return \* in PERMANENTFLAGS when we're full
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
99 - remove unused keywords?
2774
689e4235681f updated
Timo Sirainen <tss@iki.fi>
parents: 2143
diff changeset
100
689e4235681f updated
Timo Sirainen <tss@iki.fi>
parents: 2143
diff changeset
101 - caching
3904
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
102 - force bits should be used only for nonregistered fields
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
103 - change envelope parsing not to use get_headers() so imap.envelope can
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
104 actually be cached without all the headers..
6105
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
105 - if there's no other pressure for compression, we should do it when
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
106 enough temp fields are ready to be dropped
3904
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
107 - we could try compressing same field values into a single
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
108 location in cache file.
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
109 - support caching all message headers. this could be useful when
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
110 indexes are in local disk but actual mails are accessed through NFS.
2774
689e4235681f updated
Timo Sirainen <tss@iki.fi>
parents: 2143
diff changeset
111
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
112 - mbox
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
113 - dirty state should be stored to index (with mbox_very_dirty_syncs)
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
114 - after some locking timeouts: mbox-lock.c: line 518 (mbox_lock):
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
115 assertion failed: (lock_type == F_RDLCK || mbox->mbox_lock_type != F_RDLCK)
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
116 - controldir for mboxes too and place subscriptions file there?
3904
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
117 - syncing existing indexes takes 4x longer than creating new one, why?
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
118 - how well does dirty sync + status work? it reads the last mail every
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
119 time? not very good..
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
120 - always add empty line. make the parser require it too? syncing should
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
121 make sure there always exists two LFs at end of file. raw-mbox-stream
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
122 should make sure the last message ends with LF even if it doesn't exist
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
123 in the file
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
124 - Quote "From ", unquote ">From "
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
125 - COPY doesn't work to itself (lock assert crash, for now just disallowed)
2143
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
126 - if we can't create dotlock file for mbox, make sure it still can be
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
127 selected in read-only state
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
128
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
129 - index
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
130 - if log file is lost, generate it from old and new index
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
131 - read-only support for mailboxes where we don't have write-access
6105
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
132 - index file format changes:
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
133 - pack UIDs to beginning of file with UID ranges
8f79b333fc47 Updated
Timo Sirainen <tss@iki.fi>
parents: 5621
diff changeset
134 - use squat-like compressed uid ranges everywhere
6782
4628e3ec65e4 Released v1.1.beta8.
Timo Sirainen <tss@iki.fi>
parents: 6754
diff changeset
135 - write first extension intros in dovecot.index.log always with names
4628e3ec65e4 Released v1.1.beta8.
Timo Sirainen <tss@iki.fi>
parents: 6754
diff changeset
136 - or better yet, drop the intro concept completely as it is now
4628e3ec65e4 Released v1.1.beta8.
Timo Sirainen <tss@iki.fi>
parents: 6754
diff changeset
137 - add "transaction boundaries" so we know which records belong to a
4628e3ec65e4 Released v1.1.beta8.
Timo Sirainen <tss@iki.fi>
parents: 6754
diff changeset
138 single transaction.
4628e3ec65e4 Released v1.1.beta8.
Timo Sirainen <tss@iki.fi>
parents: 6754
diff changeset
139 - only after that we can remove the transaction log offset
4628e3ec65e4 Released v1.1.beta8.
Timo Sirainen <tss@iki.fi>
parents: 6754
diff changeset
140 overwriting (otherwise we can get partial transactions in views)
2143
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
141
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
142 - namespaces
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
143 - namespaces: add new "auto_disable" flag so if the mailbox can't be opened
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
144 (eg. file doesn't exist), just ignore the problem and disable the
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
145 namespace
6641
89dba9d9fa01 Updated
Timo Sirainen <tss@iki.fi>
parents: 6608
diff changeset
146 - convert plugin doesn't support namespaces
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
147
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
148 - lib-storage
5557
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
149 - rename: allow moving between storages, as long as they're of same type
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
150 - x search charset asdf all -> should fail
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
151 - should we allow following symlinks in mbox/maildirs? they are now.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
152 - if we implement shared mailboxes with shared indexes, never do that or
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
153 others could symlink your personal mailboxes and see the indexes
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
154 created for it which may contain envelope etc. data
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
155 - this allows circular mailbox hierarchies which should be prevented by
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
156 eg. allowing max. 20 hierarchies.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
157
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
158 - login
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
159 - when pipelining login command + post-login commands, login process should
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
160 pass the command to imap/pop3 process (at least one pop3 client does this)
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
161 - imap-login: Master sent reply with unknown tag 1. client closed
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
162 connection at the exact same time master was logging it in?
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
163 see master_request_abort()
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
164 - Digest-MD5: support integrity protection, and maybe crypting. Do it
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
165 through login process like SSL is done?
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
166 - x login foo bar
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
167 x NO Authentication failed.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
168 x login cras pass
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
169 * BYE Disconnected for inactivity.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
170 ^ but it's not disconnecting! (buggy dovecot-auth not replying)
3744
d362e79fdb97 Alpha5 release
Timo Sirainen <tss@iki.fi>
parents: 3670
diff changeset
171 probably because userdb lookup didn't reply, and fd was already sent
d362e79fdb97 Alpha5 release
Timo Sirainen <tss@iki.fi>
parents: 3670
diff changeset
172 for master.. should imap-login be handling it anymore?..
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
173 - imap-login: Authenticate PLAIN failed: Authentication failed:
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
174 Authentication server isn't connected, try again later.. [127.0.0.1]
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
175 ^ NO Authentication failed. (should be Temporary login failure!)
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
176 - if auth process dies, login process should retry authentication if
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
177 possible. or if not, disconnect the client so it doesn't think the auth
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
178 failed.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
179 - send client IP immediately after accept() to master process. make sure
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
180 master shows the IP if login dies unexpectedly. master should probably
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
181 also kill the login process if it doesn't kill itself soon enough.. or
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
182 maybe just log the IP immediately.
474
47d0c169bdba updated
Timo Sirainen <tss@iki.fi>
parents: 376
diff changeset
183
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
184 - auth
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
185 - with blocking passdb we're not caching lookups if the password was wrong
5557
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
186 - non-plaintext authentication doesn't support all features:
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
187 - multiple passdbs don't work, only the first one is used
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
188 - auth cache's last_success password change check doesn't exist
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
189 - remove system_user and allow returning multiple gids instead.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
190 - SIGHUP restarts auth processes .. but does it wait until they've finished
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
191 with all requests? no.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
192 - does dovecot-auth really break when it runs out of fds?
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
193 - dovecot-auth should limit how fast authentication requests are allowed
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
194 from login processes. especially if there's one login/connection the speed
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
195 should be something like once/sec. also limit how fast to accept new
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
196 connections.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
197 - support read-only logins. user could with alternative password get only
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
198 read-access to mails so mails could be read relatively safely with
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
199 untrusted computers. Maybe always send [ALERT] about the previous
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
200 read-only login time with IP?
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
201 - dovecot-auth workers: create a separate dovecot-pam worker which shares
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
202 pretty much all code with dovecot-auth worker but isn't linked against
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
203 any libraries. or..? this might be difficult to do, especially because the
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
204 workers currently can handle any kind of passdb/userb requests. perhaps
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
205 there should be a completely separate simple PAM authenticator binary.
526
ab394352fcb3 updated
Timo Sirainen <tss@iki.fi>
parents: 497
diff changeset
206
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
207 - master
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
208 - configurable syslog prefix
3450
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
209 - if there are duplicate settings, complain about it
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
210
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
211 - quota
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
212 - if dovecot-uidlist can't be written, assume the new mails have UIDs
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
213 beginning from uidlist.next_uid. Whenever mails are expunged, overwrite
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
214 the next_uid field with the current highest next_uid. Whenever we have
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
215 assumed UIDs and uidlist gets updated, throw the client out with
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
216 "inconsist mailbox".
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
217
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
218 - ssl
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
219 - add setting: ssl_options = bitmask. by default we enable all openssl
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
220 workarounds, this could be used to disable some of them
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
221 - gnutls support isn't working
965
6f005d5d9931 0.99.6 out
Timo Sirainen <tss@iki.fi>
parents: 892
diff changeset
222
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
223 - search
6232
8d4fa6f0b7e6 Released v1.1.alpha2.
Timo Sirainen <tss@iki.fi>
parents: 6105
diff changeset
224 - message header search: we should ignore LWSP between two MIME blocks(?)
8d4fa6f0b7e6 Released v1.1.alpha2.
Timo Sirainen <tss@iki.fi>
parents: 6105
diff changeset
225 - message_search_init() could accept multiple search keywords so we
1250
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
226 wouldn't need to call it separately for each one (so we wouldn't need
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
227 to parse the message multiple times).
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
228 - could optionally support scanning inside file attachments and use
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
229 plugins to extract text out of them (word, excel, pdf, etc. etc.)
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
230 - Create our own extension: When searching with TEXT/BODY, return
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
231 the message text surrounding the keywords just like web search engines
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
232 do. like: SEARCH X-PRINT-MATCHES TEXT "hello" -> * SEARCH 1 "He said:
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
233 Hello world!" 2 "Hello, I'm ...". This would be especially useful with
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
234 the above attachment scanning.
0
3b1985cbc908 Initial revision
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
235
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
236 - deliver
5557
Timo Sirainen <tss@iki.fi>
parents: 4449
diff changeset
237 - recipient_delimiter setting so user+mailbox@domain works directly
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
238
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
239 - general
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
240 - stop using atol(), atoi(), strtoul() etc. in places where we actually
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
241 care about what they return, and rather create our own function which
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
242 checks if the input overflows the integer, and if so call i_fatal()
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
243 - rfc2231 continuation support (useless?)
1553
25cef50e3b0e updated
Timo Sirainen <tss@iki.fi>
parents: 1418
diff changeset
244 - rfc2557 support for BODYSTRUCTURE, as specified by RFC3501
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
245 - LMTP server
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
246 - ability to build plugins statically into the binaries
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
247 - ~/.dovecotrc to override system wide settings. namespace settings should
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
248 override all the previous namespace settings instead of adding new.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
249 - 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
250
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
251 capabilities:
4449
a2d8624f8f2e Updated
Timo Sirainen <tss@iki.fi>
parents: 4373
diff changeset
252 - 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
253 - possibility to disable them from config file
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
254 - THREAD=ORDEREDSUBJECT - although pretty useless I'd think.
5621
eba408782747 updated
Timo Sirainen <tss@iki.fi>
parents: 5557
diff changeset
255 - acl (rfc4314)
376
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
256 - id (rfc2971)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
257 - 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
258 - separate pre/post-login settings
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
259 - 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
260 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
261 "Disconnected", etc.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
262 - 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
263 especially before logging
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
264 - mailbox-referrals (rfc2193)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
265 - 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
266 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
267 requiring another UID to run.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
268 - 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
269 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
270 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
271 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
272 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
273 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
274 referrals.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
275 - 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
276 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
277 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
278 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
279 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
280 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
281 ask the password again.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
282 - problems, problems, .. maybe not worth the trouble.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
283 - drafts:
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
284 - http://www.imc.org/ids.html
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
285 - annotate (draft-ietf-imapext-annotate)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
286 - 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
287 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
288 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
289 berkeley db to store the .data file and these annotations.
1178
933c8f9c241f updated
Timo Sirainen <tss@iki.fi>
parents: 975
diff changeset
290 - this is separate problem from index files. indexes are treated as
933c8f9c241f updated
Timo Sirainen <tss@iki.fi>
parents: 975
diff changeset
291 temporary files, annotations are permanent data. we'd have to
933c8f9c241f updated
Timo Sirainen <tss@iki.fi>
parents: 975
diff changeset
292 support non-db way to do this too, which would probably be just a
933c8f9c241f updated
Timo Sirainen <tss@iki.fi>
parents: 975
diff changeset
293 simple (slow) text file.
5621
eba408782747 updated
Timo Sirainen <tss@iki.fi>
parents: 5557
diff changeset
294 - use lib-dict probably
eba408782747 updated
Timo Sirainen <tss@iki.fi>
parents: 5557
diff changeset
295 - metadata (draft-daboo-imap-annotatemore)
376
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
296 - 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
297 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
298 db as well.
5621
eba408782747 updated
Timo Sirainen <tss@iki.fi>
parents: 5557
diff changeset
299 - lib-dict, again
376
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
300 - binary (draft-nerenberg-imap-binary)