private function findNextMessage()
    {
        do
        {
            $data = fgets( $this->fh );
        } while ( !feof( $this->fh ) && substr( $data, 0, 5 ) !== "From " );

        if ( feof( $this->fh ) )
        {
            return false;
        }
        return ftell( $this->fh );
    }
private function findNextMessage()
    {
        do
        {
            $data = fgets( $this->fh );
        } while ( !feof( $this->fh ) && substr( $data, 0, 5 ) !== "From " );

        if ( feof( $this->fh ) )
        {
            return false;
        }
        return ftell( $this->fh );
    }
private function findNextMessage ( ) { do { $ data = fgets ( $ this -> fh ) ; } while ( ! feof ( $ this -> fh ) && substr ( $ data , 0 , 5 ) !== "From " ) ; if ( feof ( $ this -> fh ) ) { return false ; } return ftell ( $ this -> fh ) ; }
Reads through the Mbox file and stops at the next message.

Messages in Mbox files are separated with lines starting with "From "
and this function reads to the next "From " marker. It then returns the
current posistion in the file. If EOF is detected during reading the
function returns false instead.

@return int
Reads through the Mbox file and stops at the next message .