ソースを参照

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

stekkel 23 年 前
コミット
deaedd9e65
1 ファイル変更6 行追加3 行削除
  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();
         $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");