annotate TODO @ 4128:9198a457f022 HEAD

1.0.beta4 released
author Timo Sirainen <tss@iki.fi>
date Sun, 02 Apr 2006 19:52:16 +0300
parents becee8ae64a6
children 66d6fd7c368e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4128
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
1 Warning: Our dotlock file /home/cras/.dovecot.convert.lock was modified (1143843911 vs 1143843915), assuming it wasn't overridden (kept it -4 secs)
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
2 - convert-tool copied mbox INBOX into ~/Maildir/.inbox/
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
3 - convert-tool doesn't read dovecot.conf
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
4 - when killing master process, the imap/pop3 processes should be killed too
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
5 - dbox: append_offset in header shouldn't be trusted
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
6 - dbox: show in index if there are expunge-flagged mails in the mailbox
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
7 - controldir for mboxes too?
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
8 - put subscriptions file to controldir?
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
9 - ability to specify default password scheme with passwd-file
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
10 - cache file can be broken quite easily with imaptest
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
11 - Cache file code doesn't notice 32bit -> 64bit CPU change and crashes
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
12 (shouldn't crash anyway!)
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
13 - add remote IP to pop3_logout_format, %R is broken
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
14 - add imap_logout_format
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
15 - outlook-idle workaround doesn't work?
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
16 - quota code should probably be always doing some quota_set_critical()
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
17 instead of using mail_storage_set_critical(), so that quota_last_error()
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
18 would work properly
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
19 - x search charset asdf all -> should fail
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
20 - passdb passwd + passdb shadow -> passdb_password isn't reset to NULL
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
21 - EXAMINE box, APPEND box -> fails
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
22 - when pipelining login command + post-login commands, login process should
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
23 pass the command to imap/pop3 process (at least one pop3 client does this)
3995
becee8ae64a6 1.0beta3 released.
Timo Sirainen <tss@iki.fi>
parents: 3904
diff changeset
24 - lda: change "unsupported feature" error to something better
becee8ae64a6 1.0beta3 released.
Timo Sirainen <tss@iki.fi>
parents: 3904
diff changeset
25 - imaptest: imap-login: Master sent reply with unknown tag 1
becee8ae64a6 1.0beta3 released.
Timo Sirainen <tss@iki.fi>
parents: 3904
diff changeset
26 - client closed connection at the exact same time master was logging it
becee8ae64a6 1.0beta3 released.
Timo Sirainen <tss@iki.fi>
parents: 3904
diff changeset
27 in? master_request_abort()
becee8ae64a6 1.0beta3 released.
Timo Sirainen <tss@iki.fi>
parents: 3904
diff changeset
28 - delete >30min old dovecot.index.log.2 files when opening index?
3904
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
29 - dict-server should have some config file which lists the allowed dicts
3744
d362e79fdb97 Alpha5 release
Timo Sirainen <tss@iki.fi>
parents: 3670
diff changeset
30 - inetd: pop3-login logs in with imap executable
3670
81e73a6714c1 1.0alpha4
Timo Sirainen <tss@iki.fi>
parents: 3575
diff changeset
31 - with blocking passdb we're not caching lookups if the password was wrong
81e73a6714c1 1.0alpha4
Timo Sirainen <tss@iki.fi>
parents: 3575
diff changeset
32 - LIST replies 2049 bytes (more would come) -> dovecot gets stuck?
3904
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
33 - LDA: empty mail gives an error.
3575
e1888f3d3423 alpha2 released
Timo Sirainen <tss@iki.fi>
parents: 3543
diff changeset
34 - LDA: "message <$MSGID> for $USER: $action" logging
3541
Timo Sirainen <tss@iki.fi>
parents: 3450
diff changeset
35 - if PAM child process doesn't finish within a minute, kill it
Timo Sirainen <tss@iki.fi>
parents: 3450
diff changeset
36 - Support listening in multiple sockets?..
Timo Sirainen <tss@iki.fi>
parents: 3450
diff changeset
37 - Thunderbird+pop3 DELE error..?
3450
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
38 - calls fsync()s etc. less often (when copying). optionally disable them.
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
39 - stop using atol(), atoi(), strtoul() etc. in places where we actually
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
40 care about what they return, and rather create our own function which
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
41 checks if the input overflows the integer, and if so call i_fatal()
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
42 - when sorting maildir files, sort based on Mxxxx first so the files are
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
43 sorted always in ascending order. required for proper out-of-quota uidlist
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
44 handling
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
45 - Panic: file mail-index.c: line 844 (mail_index_sync_from_transactions):
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
46 assertion failed: (hdr.messages_count == (*map)->hdr.messages_count)
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
47 - after some locking timeouts: mbox-lock.c: line 518 (mbox_lock): assertion failed: (lock_type == F_RDLCK || mbox->mbox_lock_type != F_RDLCK)
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
48
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
49 - Corrupted transaction log file dovecot.index.log: record size wrong (type 0x4, 20 % 12 != 0)
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
50 -> mail-index.c: line 841 (mail_index_sync_from_transactions): assertion failed: (hdr.messages_count == (*map)->hdr.messages_count)
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
51
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
52 - subscribe #maildir -> LSUB "" * -> probably not listed?
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
53 * 1807 EXISTS
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
54 * 0 RECENT
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
55 * OK [UNSEEN 1] First unseen.
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
56 * OK [UIDVALIDITY 1106090975] UIDs valid
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
57 * OK [UIDNEXT 38157] Predicted next UID
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
58 x OK [READ-WRITE] Select completed.
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
59 x store 500:* +flags.silent \deleted
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
60 * 31 RECENT
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
61 x OK Store completed.
3048
12fc3c22ffe8 updated
Timo Sirainen <tss@iki.fi>
parents: 2774
diff changeset
62
3450
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
63 - dovecot-auth workers: create a separate dovecot-pam worker which shares
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
64 pretty much all code with dovecot-auth worker but isn't linked against
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
65 any libraries. or..? this might be difficult to do, especially because the
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
66 workers currently can handle any kind of passdb/userb requests. perhaps
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
67 there should be a completely separate simple PAM authenticator binary.
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
68 - namespaces: add new "auto_disable" flag so if the mailbox can't be opened
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
69 (eg. file doesn't exist), just ignore the problem and disable the namespace
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
70 - auth master refcounting when handling user/request?
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
71 - PAM / checkpassword should use passdb-blocking
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
72
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
73 - deleting lots of messages for rarely opened box seems to cause trouble:
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
74 IMAP(cras:17105): Cached message offset lost for seq 93 in mbox file /home/cras/mail/bugtraq
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
75 IMAP(cras:21802): mbox sync: UID inserted in the middle of mailbox /home/cras/mail/bugtraq (816584 > 816580)
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
76 IMAP(cras:21802): mbox sync: UID inserted in the middle of mailbox /home/cras/mail/bugtraq (816598 > 816580)
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
77
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
78 - solaris sendfile is broken?
3048
12fc3c22ffe8 updated
Timo Sirainen <tss@iki.fi>
parents: 2774
diff changeset
79
12fc3c22ffe8 updated
Timo Sirainen <tss@iki.fi>
parents: 2774
diff changeset
80 mail-index-transaction.c: line 467 (mail_index_transaction_add_last):
12fc3c22ffe8 updated
Timo Sirainen <tss@iki.fi>
parents: 2774
diff changeset
81 assertion failed:(idx == size || data[idx].uid1 <= update.uid1)
12fc3c22ffe8 updated
Timo Sirainen <tss@iki.fi>
parents: 2774
diff changeset
82
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
83 - keywords:
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
84 - add some limits to how many there can be
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
85 - don't return \* in PERMANENTFLAGS when we're full
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
86 - remove unused keywords?
2774
689e4235681f updated
Timo Sirainen <tss@iki.fi>
parents: 2143
diff changeset
87
689e4235681f updated
Timo Sirainen <tss@iki.fi>
parents: 2143
diff changeset
88 - caching
3904
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
89 - force bits should be used only for nonregistered fields
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
90 - 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
91 actually be cached without all the headers..
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
92 - compression should drop fields with last_used <
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
93 (latest_mail_index_date - month)
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
94 - when parsing mbox or saving message, parse the mail through index-mail
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
95 so things gets saved into cache immediately
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
96 - we could try compressing same field values into a single
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
97 location in cache file.
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
98 - support caching all message headers. this could be useful when
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
99 indexes are in local disk but actual mails are accessed through NFS.
2774
689e4235681f updated
Timo Sirainen <tss@iki.fi>
parents: 2143
diff changeset
100
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
101 - mbox
3904
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
102 - size.physical isn't cached, but should it even be? ..
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
103 - 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
104 - 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
105 time? not very good..
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
106 - 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
107 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
108 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
109 in the file
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
110 - Quote "From ", unquote ">From "
2774
689e4235681f updated
Timo Sirainen <tss@iki.fi>
parents: 2143
diff changeset
111 - COPY doesn't work to itself (lock assert crash)
3904
9f8d69605d4b 1.0 beta1 released
Timo Sirainen <tss@iki.fi>
parents: 3744
diff changeset
112 - keep mbox lock for two extra seconds after sync (do we really need to?)
2143
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
113 - move /var/mail/user to ~/mbox if ~/mbox exists.. supposedly this
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
114 could be useful if /var/mail doesn't have quota, but ~/mail does.
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
115 now, what do we then do if we can move only some of the mails?..
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
116 - 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
117 selected in read-only state
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
118
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
119 - maildir
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
120 - if indexes exist but dovecot-uidlist doesn't, it's not tried to be
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
121 recreated
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
122 - rename foo foo.xyz -> infinite loop possible?
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
123 - we probably shouldn't do duplicate detection/fixing?.. or at least stat()
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
124 the old file before trying, because we might have just previously seen
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
125 the old file and then new file and then we try to fix it..
3450
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
126 - with pop3 don't move messages from new/ to cur/ before RETR
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
127
2143
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
128 - index
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
129 - optimize initial left_idx in mail_index_lookup_uid_range()
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 - transaction log: when replacing log with a same sequence, we remove it
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
132 from log's file list, but we don't do anything to existing log views.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
133 this can crash later in mail_transaction_log_view_set() because 'first'
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
134 is from log list, while we're comparing it into view->tail which it never
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
135 is. also overwriting it leaks memory..
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
136 - read-only support for mailboxes where we don't have write-access
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
137 - when mailbox is deleted/renamed and someone else had it open, we get
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
138 stat() error messages in log file.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
139 - sort: we could create alternative indexes for different sort conditions.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
140 sort code itself already supports this optimization.
2143
11c1f1203b65 updated
Timo Sirainen <tss@iki.fi>
parents: 1585
diff changeset
141
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
142 - lib-storage
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
143 - index_removal_timeout gets leaked in some conditions. how?
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
144 - subscribe: IMAP(anonymous): open(anonymous/mail/.temp...) failed: Permission denied
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
145 - subscriptions file should contain namespace prefixes. at least optionally.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
146 there's the subscriptions = yes setting now for namespaces.. do it so that
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
147 if prefix = "" has subscriptions, it contains prefixes. otherwise not.
4128
9198a457f022 1.0.beta4 released
Timo Sirainen <tss@iki.fi>
parents: 3995
diff changeset
148 - for shared/public namespaces default to "no"
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
149 - should we allow following symlinks in mbox/maildirs? they are now.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
150 - if we implement shared mailboxes with shared indexes, never do that or
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
151 others could symlink your personal mailboxes and see the indexes
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
152 created for it which may contain envelope etc. data
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
153 - this allows circular mailbox hierarchies which should be prevented by
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
154 eg. allowing max. 20 hierarchies.
860
c3d0eddd6065 updated
Timo Sirainen <tss@iki.fi>
parents: 852
diff changeset
155 - limit folder hierarchy levels? user can now create eg. a/a/a/a/...
c3d0eddd6065 updated
Timo Sirainen <tss@iki.fi>
parents: 852
diff changeset
156 and then start renaming them from end to beginning, which probably will
c3d0eddd6065 updated
Timo Sirainen <tss@iki.fi>
parents: 852
diff changeset
157 at some point start causing syscall failures which will fill up logs.
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
158
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
159 - login
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
160 - Digest-MD5: support integrity protection, and maybe crypting. Do it
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
161 through login process like SSL is done?
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
162 - x login foo bar
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
163 x NO Authentication failed.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
164 x login cras pass
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
165 * BYE Disconnected for inactivity.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
166 ^ but it's not disconnecting! (buggy dovecot-auth not replying)
3744
d362e79fdb97 Alpha5 release
Timo Sirainen <tss@iki.fi>
parents: 3670
diff changeset
167 probably because userdb lookup didn't reply, and fd was already sent
d362e79fdb97 Alpha5 release
Timo Sirainen <tss@iki.fi>
parents: 3670
diff changeset
168 for master.. should imap-login be handling it anymore?..
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
169 - imap-login: Authenticate PLAIN failed: Authentication failed:
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
170 Authentication server isn't connected, try again later.. [127.0.0.1]
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
171 ^ NO Authentication failed. (should be Temporary login failure!)
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
172 - if auth process dies, login process should retry authentication if
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
173 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
174 failed.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
175 - send client IP immediately after accept() to master process. make sure
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
176 master shows the IP if login dies unexpectedly. master should probably
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
177 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
178 maybe just log the IP immediately.
474
47d0c169bdba updated
Timo Sirainen <tss@iki.fi>
parents: 376
diff changeset
179
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
180 - auth
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
181 - support specifying hex/base64 encoding in password scheme. for example
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
182 {plain-md5.base64}
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
183 - auth protocol: make sure values can't have tabs/lfs
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
184 - auth cache: cache userdb data too.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
185 - remove system_user and allow returning multiple gids instead.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
186 - SIGHUP restarts auth processes .. but does it wait until they've finished
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
187 with all requests? no.
3541
Timo Sirainen <tss@iki.fi>
parents: 3450
diff changeset
188 - post-login-sql-command (userdb command doesn't do because of dovecot-lda)
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
189 - does dovecot-auth really break when it runs out of fds?
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
190 - dovecot-auth should limit how fast authentication requests are allowed from
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
191 login processes. especially if there's one login/connection the speed
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
192 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
193 connections.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
194 - support read-only logins. user could with alternative password get only
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
195 read-access to mails so mails could be read relatively safely with
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
196 untrusted computers. Maybe always send [ALERT] about the previous
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
197 read-only login time with IP?
526
ab394352fcb3 updated
Timo Sirainen <tss@iki.fi>
parents: 497
diff changeset
198
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
199 - master
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
200 - pipe() failed: Too many open files - fine, but don't log it 1000 times
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
201 a second
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
202 - configurable syslog prefix
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
203 - SIGHUP rather shouldn't restart listening sockets if they didn't change..
3450
5c92b51f2b38 updated
Timo Sirainen <tss@iki.fi>
parents: 3087
diff changeset
204 - if there are duplicate settings, complain about it
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
205
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
206 - quota
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
207 - support Maildir++ quota
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
208 - 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
209 beginning from uidlist.next_uid. Whenever mails are expunged, overwrite
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
210 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
211 assumed UIDs and uidlist gets updated, throw the client out with
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
212 "inconsist mailbox".
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
213 - make sure all syscalls check for ENOSPACE (and ENOACCESS while at it)
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
214
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
215 - ssl
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
216 - add setting: ssl_options = bitmask. by default we enable all openssl
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
217 workarounds, this could be used to disable some of them
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
218 - gnutls support isn't working
965
6f005d5d9931 0.99.6 out
Timo Sirainen <tss@iki.fi>
parents: 892
diff changeset
219
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
220 - search
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
221 - message header search: we should ignore LWSP between two MIME blocks
1250
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
222 - message_body_search() could accept multiple search keywords so we
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
223 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
224 to parse the message multiple times).
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
225 - message_body_search() could support NULL MessagePart and the searching
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
226 could be done while parsing the message. this would need changes to
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
227 message_parse() as well.
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 - use a trie index for fast text searching, like cyrus squat?
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
231 - Create our own extension: When searching with TEXT/BODY, return
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
232 the message text surrounding the keywords just like web search engines
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
233 do. like: SEARCH X-PRINT-MATCHES TEXT "hello" -> * SEARCH 1 "He said:
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
234 Hello world!" 2 "Hello, I'm ...". This would be especially useful with
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
235 the above attachment scanning.
0
3b1985cbc908 Initial revision
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
236
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
237 - lib-charset
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
238 - utf8_toupper() is a must. and a bit difficult if we want to do it right.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
239 - add support for other things than iconv() as well? we could reuse
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
240 the code from cyrus or courier
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
241 - cache iconvs? they'd probably be faster if we just reset the
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
242 conversion instead of opening new one every time. and there will likely
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
243 be only one or two charsets which are used for nearly all conversions.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
244
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
245 - general
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
246 - rfc2231 continuation support (useless?)
1553
25cef50e3b0e updated
Timo Sirainen <tss@iki.fi>
parents: 1418
diff changeset
247 - rfc2557 support for BODYSTRUCTURE, as specified by RFC3501
3541
Timo Sirainen <tss@iki.fi>
parents: 3450
diff changeset
248 - lmtp server - is it needed?
1250
31510fc5e02f updates
Timo Sirainen <tss@iki.fi>
parents: 1211
diff changeset
249 - create indexer binary
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
250 - ~/.dovecotrc to override system wide settings. namespace settings should
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
251 override all the previous namespace settings instead of adding new.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
252 - ESTALE handling for NFS safety
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
253 - option to disable SORT, SEARCH and other memory/cpu-intensive features.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
254 defaults and per-user by dovecot-auth.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
255 - dotlock overriding is racy, but it's pretty difficult to fix it. Also
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
256 overriding someone else's dotlock in shared folder isn't possible. These
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
257 could be fixed by having separate lock process running as root, which
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
258 would chown() the file for another uid and then unlink() it as that user.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
259 One problem with that is that if malicious user sets setuid+execute bits
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
260 on for the file, he could run the file and get changed to the new uid.
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
261 That hopefully shouldn't matter much since the new uid should be user
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
262 with minimum possible privileges. Anyway, optional..
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
263 - 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
264
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
265 capabilities:
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
266 - preferrably all should be possible to #ifdef away by a configure
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
267 option (--without-capabilities=acl,namespace,...)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
268 - possibility to disable them from config file
3087
769e2e2bf1d5 sorted things
Timo Sirainen <tss@iki.fi>
parents: 3048
diff changeset
269 - THREAD=ORDEREDSUBJECT - although pretty useless I'd think.
376
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
270 - acl (rfc2086, draft-ietf-imapext-acl), namespace (rfc2342)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
271 - probably do it like cyrus. "user.<username>" to access other
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
272 users, with "" defaulting to "user.<myself>". these should be
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
273 configurable however.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
274 - shared namespaces? maybe configurable in config file
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
275 - easiest way to do ACL would be to use unix modes, but is that
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
276 useful at all? Well, ACL2 has a bit better support for that, so
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
277 maybe we could support it.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
278 - otherwise gets a bit trickly, we could keep all mail in "imapmail"
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
279 group and 0600/0700 mode by default, but when mail is shared to others,
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
280 the group read/write access bits would be set. or alternatively we
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
281 could launch another imap process to handle it, which we should support
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
282 anyway. ACLs could be stored into ".acl" ascii file in each folder.
480
24a649e9c6d1 updated
Timo Sirainen <tss@iki.fi>
parents: 474
diff changeset
283 - support for private and shared flags, configurable by mailbox admin.
24a649e9c6d1 updated
Timo Sirainen <tss@iki.fi>
parents: 474
diff changeset
284 this isn't in any draft yet, but ACL2 author was going to create one.
24a649e9c6d1 updated
Timo Sirainen <tss@iki.fi>
parents: 474
diff changeset
285 [SHAREDFLAGS (...)] would specify which ones are shared, don't know yet
24a649e9c6d1 updated
Timo Sirainen <tss@iki.fi>
parents: 474
diff changeset
286 how they would be configured.
376
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
287 - quota (rfc2087, draft-cridland-imap-quota)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
288 - give filesystem values only to admins
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
289 - support for Maildir++, probably no need to support more.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
290 quota capability supports complex quota configuration, but if
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
291 no mailer supports them we probably shouldn't bother either
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
292 - id (rfc2971)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
293 - 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
294 - separate pre/post-login settings
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
295 - 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
296 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
297 "Disconnected", etc.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
298 - 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
299 especially before logging
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
300 - mailbox-referrals (rfc2193)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
301 - 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
302 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
303 requiring another UID to run.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
304 - 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
305 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
306 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
307 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
308 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
309 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
310 referrals.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
311 - 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
312 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
313 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
314 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
315 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
316 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
317 ask the password again.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
318 - problems, problems, .. maybe not worth the trouble.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
319 - drafts:
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
320 - http://www.imc.org/ids.html
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
321 - annotate (draft-ietf-imapext-annotate)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
322 - 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
323 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
324 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
325 berkeley db to store the .data file and these annotations.
1178
933c8f9c241f updated
Timo Sirainen <tss@iki.fi>
parents: 975
diff changeset
326 - this is separate problem from index files. indexes are treated as
933c8f9c241f updated
Timo Sirainen <tss@iki.fi>
parents: 975
diff changeset
327 temporary files, annotations are permanent data. we'd have to
933c8f9c241f updated
Timo Sirainen <tss@iki.fi>
parents: 975
diff changeset
328 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
329 simple (slow) text file.
376
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
330 - annotatemore (draft-daboo-imap-annotatemore)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
331 - 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
332 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
333 db as well.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
334 - binary (draft-nerenberg-imap-binary)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
335 - perhaps not too useful. I'd like to make Dovecot fully
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
336 binary-safe though.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
337 - view (draft-ietf-imapext-view)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
338 - slow, complex, luckily draft expired almost two years ago.
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
339 i hope i don't have to implement this :)
fd1fc4cf11b7 updated with lots of new capability comments
Timo Sirainen <tss@iki.fi>
parents: 340
diff changeset
340 - can be done client-side just fine (evolution's virtual folders)