From e372ee8cced64bee1146279504849ed2bc236efa Mon Sep 17 00:00:00 2001 From: jmunro Date: Wed, 3 Apr 2002 15:47:46 +0000 Subject: [PATCH] fix for thread pref not kicking in on INBOX git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2676 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/right_main.php | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/src/right_main.php b/src/right_main.php index fb7b809f..01d7634c 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -47,6 +47,26 @@ if (isset($newsort) && $newsort != $sort) { setPref($data_dir, $username, 'sort', $newsort); } + + +/* If the page has been loaded without a specific mailbox, */ +/* send them to the inbox */ +if (!isset($mailbox)) { + $mailbox = 'INBOX'; + $startMessage = 1; +} + + +if (!isset($startMessage) || ($startMessage == '')) { + $startMessage = 1; +} + +/* compensate for the UW vulnerability. */ +if ($imap_server_type == 'uw' && (strstr($mailbox, '../') || + substr($mailbox, 0, 1) == '/')) { + $mailbox = 'INBOX'; +} + /* decide if we are thread sorting or not */ global $allow_thread_sort; if ($allow_thread_sort == TRUE) { @@ -68,30 +88,11 @@ else { $thread_sort_messages = 0; } - -/* If the page has been loaded without a specific mailbox, */ -/* send them to the inbox */ -if (!isset($mailbox)) { - $mailbox = 'INBOX'; - $startMessage = 1; +global $color; +if( isset($do_hook) && $do_hook ) { + do_hook ("generic_header"); } - -if (!isset($startMessage) || ($startMessage == '')) { - $startMessage = 1; -} - -/* compensate for the UW vulnerability. */ -if ($imap_server_type == 'uw' && (strstr($mailbox, '../') || - substr($mailbox, 0, 1) == '/')) { - $mailbox = 'INBOX'; -} - global $color; - - if( isset($do_hook) && $do_hook ) { - do_hook ("generic_header"); - } - sqimap_mailbox_select($imapConnection, $mailbox); if (isset($composenew)) { -- 2.25.1