Bläddra i källkod

fix for navigating links in digests. Added check for message/rfc822

stekkel 23 år sedan
förälder
incheckning
deaedd9e65
1 ändrade filer med 6 tillägg och 3 borttagningar
  1. 6 3
      src/read_body.php

+ 6 - 3
src/read_body.php

@@ -553,10 +553,13 @@ function formatMenubar($mailbox, $passed_id, $passed_ent_id, $message, $mbx_resp
         $entities     = array();
         $entities     = array();
         $entity_count = array();
         $entity_count = array();
         $c = 0;
         $c = 0;
+
         foreach($message->parent->entities as $ent) {
         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");
         $prev_link = _("Previous");
         $next_link = _("Next");
         $next_link = _("Next");