6.3.5 mail.imap.statuscachetimeout
mail.imap.statuscachetimeout specifies the time-out value in milliseconds for the cache of the STATUS command response.
Description
mail.imap.statuscachetimeout specifies the time-out value in milliseconds for the cache of the STATUS command response. The default value is 1000 (1 second). If the value is 0, then the cache is disabled.
Specifiable values
Type: Integer
0 to 2147483647
Examples
Properties properties = new Properties(); properties.setProperty("mail.imap.statuscachetimeout", "30"); Session session = Session.getDefaultInstance(properties); Store store = session.getStore("imap"); store.connect("user", "password"); messages = folder.getMessages();