fixed bugs with cache
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 26 Apr 2000 02:17:58 +0000 (02:17 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 26 Apr 2000 02:17:58 +0000 (02:17 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@459 7612ce4b-ef26-0410-bec9-ea0150e637f0

BUG
src/read_body.php
src/right_main.php

diff --git a/BUG b/BUG
index b199bc28ded455fe05169bfca37f9e0ba73edc12..1bd6ae2a8c57bb2fe5439306bb9b93ed022fab52 100644 (file)
--- a/BUG
+++ b/BUG
@@ -1,15 +1,15 @@
 Known BUGS to be fixed before 0.4pre1:
 
-  -    If a new message comes in while still browsing cached message 
-       list, the space is allocated, but it is blank.
-(lme)  I'm not convinced that the cache gets deleted all the time.  I'll 
-       look into this one.  
-  -    When reading through 7 unread messages, every time I would read
-       a message and click on "Message List" to go back, they would stay
-                marked "unread".  The caching was doing too good of a job.  (:
 
 
 --SQUASHED--
+(lme)  When reading through 7 unread messages, every time I would read
+       a message and click on "Message List" to go back, they would stay
+                marked "unread".  The caching was doing too good of a job.  (:
+(lme)  If a new message comes in while still browsing cached message 
+       list, the space is allocated, but it is blank.
+(lme)  I'm not convinced that the cache gets deleted all the time.  I'll 
+       look into this one.  
 (lme)  LDAP preferences in conf.pl are not working.
 (lme)  Next/Previous while viewing a message should take into account 
        the way that the mailbox is sorted.  Right now, it just does it 
index e6e000fa4a680e556cb063e615e609d2e9f241db..4143694cf36c2d0dd8cacbbcf4d63e46ffaedeab 100644 (file)
       $currentArrayIndex = -1;
    }
 
+       for ($i = 0; $i < count($msgs); $i++) {
+               if ($msgs[$i]["ID"] == $passed_id)
+                       $msgs[$i]["FLAG_SEEN"] = true;
+       }
+
    include("../src/load_prefs.php");
    $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    sqimap_mailbox_select($imapConnection, $mailbox);
index 3386741b837130e2562136c073d465241ba9d993..d4e613b553310f0cdfca1e64dc21113e1a9101f2 100644 (file)
@@ -73,7 +73,6 @@
    }
 
    sqimap_mailbox_select($imapConnection, $mailbox);
-   $numMessages = sqimap_get_num_messages ($imapConnection, $mailbox);
    displayPageHeader($color, $mailbox);
 
        if (isset($newsort)) {
          unset($msgs);
       if (session_is_registered("msort"))
          unset($msort);
+               if (session_is_registered("numMessages"))
+                       unset($numMessages);
+
+       $numMessages = sqimap_get_num_messages ($imapConnection, $mailbox);
 
       showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color, $show_num, $use_mailbox_cache);
       
          session_register("msgs");
       if (session_is_registered("msort") && isset($msort))
          session_register("msort");
+      session_register("numMessages");
    }
 
    // close the connection