Vladislav Bogdanov wrote:
here is a most recent revision of a threaded view patch.
Most notable changes since rev4 (http://lists.roundcube.net/mail-archive/dev/2009-09/0000143.html):
- Port to RC r3022
- Add children of a last shift-selected message to selection too.
I don't see this message on the list, so I'm attaching the patch in my reply
Alec, would you please check this patch to not interfere with your last additions (message index) in a improper way?
Currently I have no time to test it well, but I've seen the patch and I've got a few thoughts:
think 'imap_thread_algorithm' should be set automatically to the best from those supported by server (REFS, REFERENCES, ORDEREDSUBJECT). It means if e.g. server supports REFS and ORDEREDSUBJECT we should use REFS. Does anybody need ORDEREDSUBJECT if he's server supports REFERENCES? Also see manage_folders.inc for: $IMAP->get_capability('thread=references');
option. Messages are sorted by message index if message_sort_col='date'. We don't need this 'default' stuff also because THREAD command returns messages sorted by date.
enable_caching instead. I know it will be hard now, but for me would be better (a much better) to remove the whole thread caching stuff from the patch and implement this in next step after threading will be working well without caching. For first step: enable_caching=true -> messages_treading=false. I'm of course a volunteer to implement the whole threads caching stuff.
could be implemented as expand_by_state('unread') or sth. The list.js is used not only for messages.
rcmail::get_instance()->imap->threading. Just for better readability.