From 9735cf27563380853aea5c9ca0cf757fad6133d1 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 15 Mar 2002 11:55:57 +0000 Subject: [PATCH] support user option sort by internal date git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2586 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 34522142..a411f682 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -89,7 +89,7 @@ function sqimap_message_list_squisher($messages_array) { } function sqimap_get_small_header_list ($imap_stream, $msg_list, $issent) { - global $squirrelmail_language, $color; + global $squirrelmail_language, $color, $data_dir, $username; /* Get the small headers for each message in $msg_list */ $sid = sqimap_session_id(); @@ -205,7 +205,8 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $issent) { } } } - if (trim($date) == "") { + $internaldate = getPref($data_dir, $username, 'internal_date_sort'); + if (trim($date) == "" || $internaldate) { fputs($imap_stream, "$sid FETCH $msg_list[$msgi] INTERNALDATE\r\n"); $readdate = sqimap_read_data($imap_stream, $sid, true, $response, $message); if (eregi(".*INTERNALDATE \"(.*)\".*", $readdate[0], $regs)) { -- 2.25.1