4 +-----------------------------------------------------------------------+
5 | program/steps/mail/getunread.inc |
7 | This file is part of the RoundCube Webmail client |
8 | Copyright (C) 2005, RoundCube Dev. - Switzerland |
9 | Licensed under the GNU GPL |
12 | Check all mailboxes for unread messages and update GUI |
14 +-----------------------------------------------------------------------+
15 | Author: Thomas Bruederli <roundcube@gmail.com> |
16 +-----------------------------------------------------------------------+
18 $Id: getunread.inc 543 2007-04-28 18:07:12Z thomasb $
22 $a_folders = $IMAP->list_mailboxes();
24 if (!empty($a_folders))
26 foreach ($a_folders as $mbox_row)
27 $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN'));