private function add_flag_to_message($messageid, $flag) {
        // Get the current mailbox.
        $mailbox = $this->get_mailbox();

        // Mark it as read to lock the message.
        $this->client->store($mailbox, array(
            'ids' => new \Horde_Imap_Client_Ids($messageid),
            'add' => $flag,
        ));
    }
private function add_flag_to_message($messageid, $flag) {
        // Get the current mailbox.
        $mailbox = $this->get_mailbox();

        // Mark it as read to lock the message.
        $this->client->store($mailbox, array(
            'ids' => new \Horde_Imap_Client_Ids($messageid),
            'add' => $flag,
        ));
    }
private function add_flag_to_message ( $ messageid , $ flag ) { // Get the current mailbox. $ mailbox = $ this -> get_mailbox ( ) ; // Mark it as read to lock the message. $ this -> client -> store ( $ mailbox , array ( 'ids' => new \ Horde_Imap_Client_Ids ( $ messageid ) , 'add' => $ flag , ) ) ; }
Add the specified flag to the message.

@param mixed $messageid
@param string $flag The flag to add
Add the specified flag to the message .