roundcubemail/program/lib/Roundcube/rcube_imap_generic.php
protected function flagsToStr($flags)
    {
        foreach ((array)$flags as $idx => $flag) {
            if ($flag = $this->flags[strtoupper($flag)]) {
                $flags[$idx] = $flag;
            }
        }

        return implode(' ', (array)$flags);
    }
protected function flagsToStr($flags)
    {
        foreach ((array)$flags as $idx => $flag) {
            if ($flag = $this->flags[strtoupper($flag)]) {
                $flags[$idx] = $flag;
            }
        }

        return implode(' ', (array)$flags);
    }
protected function flagsToStr ( $ flags ) { foreach ( ( array ) $ flags as $ idx => $ flag ) { if ( $ flag = $ this -> flags [ strtoupper ( $ flag ) ] ) { $ flags [ $ idx ] = $ flag ; } } return implode ( ' ' , ( array ) $ flags ) ; }
Converts flags array into string for inclusion in IMAP command

@param array $flags Flags (see self::flags)

@return string Space-separated list of flags
Converts flags array into string for inclusion in IMAP command