3 +-----------------------------------------------------------------------+
4 | program/steps/mail/mark.inc |
6 | This file is part of the RoundCube Webmail client |
7 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland |
8 | Licensed under the GNU GPL |
11 | Mark the submitted messages with the specified flag |
13 +-----------------------------------------------------------------------+
14 | Author: Thomas Bruederli <roundcube@gmail.com> |
15 +-----------------------------------------------------------------------+
17 $Id: mark.inc 573 2007-05-18 11:29:25Z thomasb $
22 'undelete' => 'UNDELETED',
23 'delete' => 'DELETED',
25 'unread' => 'UNSEEN');
27 if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_value('_flag', RCUBE_INPUT_POST)))
29 $flag = $a_flags_map[$flag] ? $a_flags_map[$flag] : strtoupper($flag);
30 $marked = $IMAP->set_flag($uids, $flag);
34 $mbox_name = $IMAP->get_mailbox_name();
35 $OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN'));