From 7eb6261ec33a66cbc61972115687290a5c13c149 Mon Sep 17 00:00:00 2001 From: jangliss Date: Sun, 15 Jan 2006 18:54:35 +0000 Subject: [PATCH] Saved additional calls to NAMESPACE if it was already saved in the session by redirect.php. Suggestion from Michael Long. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10546 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 2 ++ functions/imap_general.php | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index eb376016..6d60a6a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -636,6 +636,8 @@ Version 1.5.0 - 2 February 2004 - Integration of delete_move_next plugin into core. - Compression of buttons/headers for message index and message body - New option to save replies in the same folder as the original message. + - Remove possible unneeded IMAP call for NAMESPACE if it was saved in the + session (suggestion by Michael Long). ************************************** diff --git a/functions/imap_general.php b/functions/imap_general.php index 0224ce67..13f45062 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -902,6 +902,11 @@ function sqimap_get_delimiter ($imap_stream = false) { return $optional_delimiter; } + /* Delimiter is stored in the session from redirect. Try fetching from there first */ + if (empty($sqimap_delimiter) { + sqgetGlobalVar('delimiter',$sqimap_delimiter,SQ_SESSION); + } + /* Do some caching here */ if (!$sqimap_delimiter) { if (sqimap_capability($imap_stream, 'NAMESPACE')) { -- 2.25.1