Chris Moules wrote:
There are ways in which RC seems not to be very coherent in its-self. For example the message list building data seems to be different between the JavaScript and HTML output. It seems to take two different paths through the code. Is this correct or have we overlooked something fundamental? If this is correct, is it by design and if so why?!?
One is for page reload and one for ajax. We could use ajax method after page load, but it will produce not wanted delay and one extra http request/imap connection, so I think it's ok. After both methods calls there's rcmail.init_message_row called for each row, maybe we should create 'init_row' hook? It could be usefull for you.
We believe that the use of jQuery could be greatly improved. We do a _lot_ of jQuery development and, to us, lots of what has been implemented could do with being restructured and reworked.
Feel free to create patches.
We are also working on a Advanced Global Search plugin that we have working in-house but is not yet simple to package. That plugin is even more invasive into the RC internals than this one.
Not everything must be a plugin.