Reset $msg on each iteration, otherwise a message with eg no subject
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 25 May 2004 13:47:49 +0000 (13:47 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 25 May 2004 13:47:49 +0000 (13:47 +0000)
will take the subject from the previous message.

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

functions/imap_messages.php

index 5930134d09f5c52770f49529072765ad6ea9d46f..5afd30303748093788828c281ad42c7d80e20386 100755 (executable)
@@ -574,6 +574,7 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $show_num=false,
     $i = 0;
 
     foreach ($read_list as $r) {
+        $msg = array();
         // use unset because we do isset below
         $read = implode('',$r);