From 2d5ccf7d4ba3d33d43c857863b70df96d8805755 Mon Sep 17 00:00:00 2001 From: uid77282 Date: Fri, 5 Jul 2002 22:37:47 +0000 Subject: [PATCH] $msgi+1 doesn't work when using anything but the system's default sort. And maybe not even then. This makes it so you don't select message 134 and end up deleting message 1 just because it happens to be first on the list. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3062 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 29d28fb3..9b620ac3 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -605,7 +605,7 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $issent) { if ($uid_support) { $header->uid = $unique_id; } else { - $header->uid = $msgi +1; + $header->uid = $msg_list[$msgi]; } $header->date = $date; $header->subject = $subject; -- 2.25.1