roundcubemail/program/lib/Roundcube/rcube_imap.php
public function check_permflag($flag)
    {
        $flag       = strtoupper($flag);
        $perm_flags = $this->get_permflags($this->folder);
        $imap_flag  = $this->conn->flags[$flag];

        return $imap_flag && !empty($perm_flags) && in_array_nocase($imap_flag, $perm_flags);
    }
public function check_permflag($flag)
    {
        $flag       = strtoupper($flag);
        $perm_flags = $this->get_permflags($this->folder);
        $imap_flag  = $this->conn->flags[$flag];

        return $imap_flag && !empty($perm_flags) && in_array_nocase($imap_flag, $perm_flags);
    }
public function check_permflag ( $ flag ) { $ flag = strtoupper ( $ flag ) ; $ perm_flags = $ this -> get_permflags ( $ this -> folder ) ; $ imap_flag = $ this -> conn -> flags [ $ flag ] ; return $ imap_flag && ! empty ( $ perm_flags ) && in_array_nocase ( $ imap_flag , $ perm_flags ) ; }
Checks the PERMANENTFLAGS capability of the current folder
and returns true if the given flag is supported by the IMAP server

@param string $flag Permanentflag name

@return boolean True if this flag is supported
Checks the PERMANENTFLAGS capability of the current folder and returns true if the given flag is supported by the IMAP server