roundcubemail/program/lib/Roundcube/rcube_imap_generic.php
public static function uncompressMessageSet($messages)
    {
        if (empty($messages)) {
            return array();
        }

        $result   = array();
        $messages = explode(',', $messages);

        foreach ($messages as $idx => $part) {
            $items = explode(':', $part);
            $max   = max($items[0], $items[1]);

            for ($x=$items[0]; $x<=$max; $x++) {
                $result[] = (int)$x;
            }
            unset($messages[$idx]);
        }

        return $result;
    }
public static function uncompressMessageSet($messages)
    {
        if (empty($messages)) {
            return array();
        }

        $result   = array();
        $messages = explode(',', $messages);

        foreach ($messages as $idx => $part) {
            $items = explode(':', $part);
            $max   = max($items[0], $items[1]);

            for ($x=$items[0]; $x<=$max; $x++) {
                $result[] = (int)$x;
            }
            unset($messages[$idx]);
        }

        return $result;
    }
public static function uncompressMessageSet ( $ messages ) { if ( empty ( $ messages ) ) { return array ( ) ; } $ result = array ( ) ; $ messages = explode ( ',' , $ messages ) ; foreach ( $ messages as $ idx => $ part ) { $ items = explode ( ':' , $ part ) ; $ max = max ( $ items [ 0 ] , $ items [ 1 ] ) ; for ( $ x = $ items [ 0 ] ; $ x <= $ max ; $ x ++ ) { $ result [ ] = ( int ) $ x ; } unset ( $ messages [ $ idx ] ) ; } return $ result ; }
Converts message sequence-set into array

@param string $messages Message identifiers

@return array List of message identifiers
Converts message sequence - set into array