src/IMAP/Client.php
public function getMessages(Folder $folder, $criteria = 'ALL', $fetch_options = null, $fetch_body = true, $fetch_attachment = true, $fetch_flags = false) {
        return $folder->getMessages($criteria, $fetch_options, $fetch_body, $fetch_attachment, $fetch_flags);
    }
public function getMessages(Folder $folder, $criteria = 'ALL', $fetch_options = null, $fetch_body = true, $fetch_attachment = true, $fetch_flags = false) {
        return $folder->getMessages($criteria, $fetch_options, $fetch_body, $fetch_attachment, $fetch_flags);
    }
public function getMessages ( Folder $ folder , $ criteria = 'ALL' , $ fetch_options = null , $ fetch_body = true , $ fetch_attachment = true , $ fetch_flags = false ) { return $ folder -> getMessages ( $ criteria , $ fetch_options , $ fetch_body , $ fetch_attachment , $ fetch_flags ) ; }
Get messages from folder.

@param Folder   $folder
@param string   $criteria
@param int|null $fetch_options
@param boolean  $fetch_body
@param boolean  $fetch_attachment
@param boolean  $fetch_flags

@return MessageCollection
@throws ConnectionFailedException
@throws Exceptions\InvalidWhereQueryCriteriaException
@throws GetMessagesFailedException

@deprecated 1.0.5.2:2.0.0 No longer needed. Use Folder::getMessages() instead
@see Folder::getMessages()
Get messages from folder .