From cbeea3d4d092f6ae2310175a57fe15b43d608b33 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Thu, 17 Sep 2009 08:36:32 -0400 Subject: [PATCH] - some code improvements for r2959 change --- program/steps/mail/move_del.inc | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc index 2a8cee6..30102d9 100644 --- a/program/steps/mail/move_del.inc +++ b/program/steps/mail/move_del.inc @@ -110,12 +110,7 @@ } if ($RCMAIL->action=='moveto' && $target) { - $unseen_count = $IMAP->messagecount($target, 'UNSEEN', true); - $old_unseen = $_SESSION['unseen_count'][$target]; - if ($old_unseen != $unseen_count) { - $OUTPUT->command('set_unread_count', $target, $unseen_count); - $_SESSION['unseen_count'][$target] = $unseen_count; - } + rcmail_send_unread_count($target, true); } $OUTPUT->command('set_quota', rcmail_quota_content($IMAP->get_quota())); -- Gitblit v1.9.1