Use correct sequence numbers consistently
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 19 Mar 2009 04:13:51 +0000 (04:13 +0000)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 19 Mar 2009 07:12:46 +0000 (07:12 +0000)
imp/lib/Mailbox.php
imp/lib/Views/ListMessages.php

index e870fb9..f6d9c6c 100644 (file)
@@ -207,7 +207,7 @@ class IMP_Mailbox
                         $v['previewcut'] = $preview_info[$k]['IMPpreviewc'];
                     }
 
-                    $overview[$ids[$k]] = $v;
+                    $overview[] = $v;
                 }
 
                 $uids[$mbox] = array_keys($fetch_res);
index b470a49..a5a6d3d 100644 (file)
@@ -278,12 +278,12 @@ class IMP_Views_ListMessages
 
         /* Display message information. */
         reset($overview['overview']);
-        while (list($msgIndex, $ob) = each($overview['overview'])) {
+        while (list(,$ob) = each($overview['overview'])) {
             /* Initialize the header fields. */
             $msg = array(
                 'imapuid' => $ob['uid'],
                 'menutype' => 'message',
-                'rownum' => $msgIndex,
+                'rownum' => $ob['seq'],
                 'view' => $ob['mailbox'],
             );