From: Daniel W. <d...@ni...> - 2006-02-24 17:28:01
|
>>On Thu, 2005-11-24 at 16:27 -0800, Charles Kuo wrote: >> >> >>>How do you sort by size? Anyone know? >>> >> >>Go to: Options -> Index Order >> >>Select "Size" from the drop down menu and click on "Add". (Optionally, >>move it up to match how you want it in message listing) >> >>Now go to any of your folders on your left pane. The message index >>column on the right side will have an additional column called "Size". >>Click on the image next to it to sort according to your preference. > > > This is only applicable to the development branch, 1.5. This is not > correct for users of 1.4.x. > paul- it is so trivial to add sort by size support to 1.4.x - why don't you? it's just adding sort types 7 and 8 into the code. i could provide a diff but the new code is simply a copy of what is already there for the other columns: mailbox_display: case 6: /* size */ echo html_tag( 'td', '' , 'left', '', 'width="5%" nowrap').'<b>' . _("Size") . '</b>'; if ($showsort) { ShowSortButton($sort, $mailbox, 7, 8); } echo "</td>\n"; break; and in imap_messages.php $sort_on = array (0=> 'DATE', 1=> 'DATE', 2=> 'FROM', 3=> 'FROM', 4=> 'SUBJECT', 5=> 'SUBJECT', 7=> 'SIZE', 8=> 'SIZE'); rgds, Daniel |