|
@@ -150,8 +150,8 @@ function delete_move_next_read($currloc) {
|
|
$uid_support;
|
|
$uid_support;
|
|
|
|
|
|
if (!(($where && $what) || ($currentArrayIndex == -1))) {
|
|
if (!(($where && $what) || ($currentArrayIndex == -1))) {
|
|
- $next = findNextMessage();
|
|
|
|
- $prev = findPreviousMessage($mbx_response['EXISTS']);
|
|
|
|
|
|
+ $next = findNextMessage($passed_id);
|
|
|
|
+ $prev = findPreviousMessage($mbx_response['EXISTS'], $passed_id);
|
|
$prev_if_del = $prev;
|
|
$prev_if_del = $prev;
|
|
$next_if_del = $next;
|
|
$next_if_del = $next;
|
|
if (!$uid_support && ($auto_expunge || $move_to_trash)) {
|
|
if (!$uid_support && ($auto_expunge || $move_to_trash)) {
|
|
@@ -170,16 +170,16 @@ function delete_move_next_read($currloc) {
|
|
'<tr>'.
|
|
'<tr>'.
|
|
"<td bgcolor=\"$color[9]\" width=\"100%\" align=center><small>";
|
|
"<td bgcolor=\"$color[9]\" width=\"100%\" align=center><small>";
|
|
|
|
|
|
- if ($prev > 0) {
|
|
|
|
- echo "<a href=\"read_body.php?passed_id=$prev&mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage&show_more=0\">" . _("Previous") . "</A> | \n";
|
|
|
|
- } else {
|
|
|
|
- echo _("Previous") . " | ";
|
|
|
|
- }
|
|
|
|
- if ($next > 0) {
|
|
|
|
- echo "<a href=\"read_body.php?passed_id=$next&mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage&show_more=0\">" . _("Next") . "</A> | \n";
|
|
|
|
- } else {
|
|
|
|
- echo _("Next") . " | ";
|
|
|
|
- }
|
|
|
|
|
|
+// if ($prev > 0) {
|
|
|
|
+// echo "<a href=\"read_body.php?passed_id=$prev&mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage&show_more=0\">" . _("Previous") . "</A> | \n";
|
|
|
|
+// } else {
|
|
|
|
+// echo _("Previous") . " | ";
|
|
|
|
+// }
|
|
|
|
+// if ($next > 0) {
|
|
|
|
+// echo "<a href=\"read_body.php?passed_id=$next&mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage&show_more=0\">" . _("Next") . "</A> | \n";
|
|
|
|
+// } else {
|
|
|
|
+// echo _("Next") . " | ";
|
|
|
|
+// }
|
|
if ($prev > 0){
|
|
if ($prev > 0){
|
|
echo "<a href=\"read_body.php?passed_id=$prev_if_del&mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage&show_more=0&delete_id=$passed_id\">" . _("Delete & Prev") . "</a>" . " | \n";
|
|
echo "<a href=\"read_body.php?passed_id=$prev_if_del&mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage&show_more=0&delete_id=$passed_id\">" . _("Delete & Prev") . "</a>" . " | \n";
|
|
}
|
|
}
|