Bläddra i källkod

Saved additional calls to NAMESPACE if it was already saved in the session
by redirect.php. Suggestion from Michael Long.

jangliss 19 år sedan
förälder
incheckning
4946845618
2 ändrade filer med 7 tillägg och 0 borttagningar
  1. 2 0
      ChangeLog
  2. 5 0
      functions/imap_general.php

+ 2 - 0
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).
 
 
 **************************************

+ 5 - 0
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')) {