fix for navigating links in digests. Added check for message/rfc822
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 23 Oct 2002 13:19:56 +0000 (13:19 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 23 Oct 2002 13:19:56 +0000 (13:19 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3947 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/read_body.php

index 1ac417cf9a5dff0defba0ad8be66c9eea111bd1b..49c29ac9badc3f75156d8df570a93e2f86fbe24f 100644 (file)
@@ -553,10 +553,13 @@ function formatMenubar($mailbox, $passed_id, $passed_ent_id, $message, $mbx_resp
         $entities     = array();
         $entity_count = array();
         $c = 0;
+
         foreach($message->parent->entities as $ent) {
-            $c++;
-            $entity_count[$c] = $ent->entity_id;
-            $entities[$ent->entity_id] = $c;
+           if ($ent->type0 == 'message' && $ent->type1 == 'rfc822') {
+               $c++;
+               $entity_count[$c] = $ent->entity_id;
+               $entities[$ent->entity_id] = $c;
+           }
         }
         $prev_link = _("Previous");
         $next_link = _("Next");