From cbeea3d4d092f6ae2310175a57fe15b43d608b33 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 17 Sep 2009 12:36:32 +0000 Subject: - some code improvements for r2959 change --- program/steps/mail/move_del.inc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'program/steps/mail/move_del.inc') diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc index 2a8cee633..30102d9d5 100644 --- a/program/steps/mail/move_del.inc +++ b/program/steps/mail/move_del.inc @@ -110,12 +110,7 @@ else } 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())); -- cgit v1.2.3