Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: tco942 on December 02, 2020, 06:17:30 AM

Title: Sort message list from client side
Post by: tco942 on December 02, 2020, 06:17:30 AM
Hello,

I'm developing a plugin that adds columns into the message list. The content is based on mail's headers. The header is complex, and must be decoded & parsed ; only then information is displayed in columns. My columns are added as in the authres_status plugin, i.e. I have 'message_list' hook  appending my columns and its computed data into list_cols attribute, for each message.

I would like to  be able to sort messages based on this column. However, it seems the sorting job is done by the IMAP server. As the decode/parsing step cannot be done on the IMAP server, is there any way to sort column from roundcube side ?

Thanks ;