original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: This function reads through the whole mbox and returns starting positions of the messages.
  
  @return array(int=>int)
docstring_tokens: This function reads through the whole mbox and returns starting positions of the messages .