6.3.2 mail.imap.fetchsize
mail.imap.fetchsize specifies the partial fetch size in bytes. The default value is 16 kilobyte.
Description
mail.imap.fetchsize specifies the partial fetch size in bytes. The default value is 16 kilobyte.
Specifiable values
Type: Integer
0 to 2147483647
Example
Properties properties = new Properties(); properties.setProperty("mail.imap.fetchsize", "1000"); Session session = Session.getDefaultInstance(properties); Store store = session.getStore("imap"); store.connect("user", "password"); messages = folder.getMessages();