Author Topic: Sort by attachments / read unread messages...  (Read 5843 times)

Offline paritycheck

  • Jr. Member
  • **
  • Posts: 36
Sort by attachments / read unread messages...
« on: May 05, 2007, 04:22:37 AM »
Hi guys, I was wondering how could I sort messages based upon whether they had an attachment and whether they were read and unread. I noticed that there are no clickable headings for the attachment and unread icon columns..plus I also noticed that there isn't any column in the db messages table which determines whether a message has an attachment or was read...

What do I need to implement this or has it been done already? From what I've noticed I guess I'll have to:
1. Add some columns to the messages table
2. Get the system to update the message table whther the messages have attachments or not/ and whether they have been marked read or not.
3. Add code to get the attachment enabled for sorting on teh lcient side...

so far I pretty much just have an idea of how to do the first step ;) I would really really appreciate any help on how to get the other 2 parts done. ANy help i.e what functions are involved or what else I might need to do please do share...

SO far I under stand that the function which actually does the sorting is the rcube_imap::_list_headers function... not sure where to go from here

Thanks again..