PHPDaemon\Clients\IMAP\Connection::store PHP Method

store() protected method

protected store ( array $flags, string $from, string $to = null, string $mode = null, boolean $silent = true, string $tag = self::TAG_STORE )
$flags array
$from string
$to string
$mode string (+/-)
$silent boolean
$tag string
    protected function store(array $flags, $from, $to = null, $mode = null, $silent = true, $tag = self::TAG_STORE)
    {
        $item = 'FLAGS';
        if ($mode == '+' || $mode == '-') {
            $item = $mode . $item;
        }
        if ($silent) {
            $item .= '.SILENT';
        }
        $flags = $this->escapeList($flags);
        $set = (int) $from;
        if ($to !== null) {
            $set .= ':' . ($to == INF ? '*' : (int) $to);
        }
        $this->writeln($tag . ' UID STORE ' . $set . ' ' . $item . ' ' . $flags);
    }