src/core/framework/core/3rdparty/ezcomponents/Mail/src/transports/mbox/mbox_transport.php
public function listMessages()
    {
        $messages = array();
        fseek( $this->fh, 0 );
        // Skip the first mail as this is the mbox header
        $position = $this->findFirstMessage();
        if ( $position === false )
        {
            return $messages;
        }
        // Continue reading through the rest of the mbox
        do
        {
            $position = $this->findNextMessage();
            if ( $position !== false )
            {
                $messages[] = $position;
            }
        } while ( $position !== false );

        return $messages;
    }
public function listMessages()
    {
        $messages = array();
        fseek( $this->fh, 0 );
        // Skip the first mail as this is the mbox header
        $position = $this->findFirstMessage();
        if ( $position === false )
        {
            return $messages;
        }
        // Continue reading through the rest of the mbox
        do
        {
            $position = $this->findNextMessage();
            if ( $position !== false )
            {
                $messages[] = $position;
            }
        } while ( $position !== false );

        return $messages;
    }
public function listMessages ( ) { $ messages = array ( ) ; fseek ( $ this -> fh , 0 ) ; // Skip the first mail as this is the mbox header $ position = $ this -> findFirstMessage ( ) ; if ( $ position === false ) { return $ messages ; } // Continue reading through the rest of the mbox do { $ position = $ this -> findNextMessage ( ) ; if ( $ position !== false ) { $ messages [ ] = $ position ; } } while ( $ position !== false ) ; return $ messages ; }
This function reads through the whole mbox and returns starting positions of the messages.

@return array(int=>int)
This function reads through the whole mbox and returns starting positions of the messages .