public function moveMessages($ids, $target) {
        if (imap_mail_move($this->imap, implode(",", $ids), $target, CP_UID) === false)
            return false;
        return imap_expunge($this->imap);
    }
public function moveMessages($ids, $target) {
        if (imap_mail_move($this->imap, implode(",", $ids), $target, CP_UID) === false)
            return false;
        return imap_expunge($this->imap);
    }
public function moveMessages ( $ ids , $ target ) { if ( imap_mail_move ( $ this -> imap , implode ( "," , $ ids ) , $ target , CP_UID ) === false ) return false ; return imap_expunge ( $ this -> imap ) ; }
Move given message in new folder

@param array $ids array of message ids
@param string $target new folder
@return bool success or not
Move given message in new folder