Headers fetch from read_body triggered by using the prev/next links didn't
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 8 Feb 2006 17:56:25 +0000 (17:56 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 8 Feb 2006 17:56:25 +0000 (17:56 +0000)
add sufficient info  for displaying the correct header in the messages list.
The extra check detects if the header is complete and add the specific uid
to the array with headers to be fetched.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10667 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php

index d5eb6214ca735faf84c96bb6f26399c201864b2d..2b1d756f5e0637967ca3fe572c6169377998bd93 100644 (file)
@@ -346,6 +346,12 @@ function fetchMessageHeaders($imapConnection, &$aMailbox) {
         $id_slice = array_slice($aUid,$start_msg-1,$iLimit);
         /* do some funky cache checks */
         if (isset($aMailbox['MSG_HEADERS']) && is_array($aMailbox['MSG_HEADERS'])) {
+            // temp code, read_body del / next links fo not update fields.
+            foreach ($aMailbox['MSG_HEADERS'] as $iUid => $aValue) {
+                if (!isset($aValue['UID'])) {
+                    unset($aMailbox['MSG_HEADERS'][$iUid]);
+                }
+            }
             $aUidCached = array_keys($aMailbox['MSG_HEADERS']);
         } else {
             $aMailbox['MSG_HEADERS'] = array();