public Query getMails ( String [ ] messageNumbers , String [ ] uids , boolean all ) throws MessagingException , IOException { Query qry = new QueryImpl ( all ? _fldnew : _flddo , 0 , "query" ) ; Folder folder = _store . getFolder ( "INBOX" ) ; folder . open ( Folder . READ_ONLY ) ; try { getMessages ( qry , folder , uids , messageNumbers , startrow , maxrows , all ) ; } finally { folder . close ( false ) ; } return qry ; }
return all messages from inbox