(IMAPProtocol protocol)
| 205 | try { |
| 206 | ((IMAPFolder) ifolder).doCommand(new IMAPFolder.ProtocolCommand() { |
| 207 | @Override |
| 208 | public Object doCommand(IMAPProtocol protocol) throws ProtocolException { |
| 209 | long ago = System.currentTimeMillis() - protocol.getTimestamp(); |
| 210 | if (ago > 20000) { |
| 211 | Log.i("NOOP ago=" + ago + " ms"); |
| 212 | protocol.noop(); |
| 213 | } |
| 214 | return null; |
| 215 | } |
| 216 | }); |
| 217 | } catch (MessagingException ex) { |
| 218 | throw new FolderClosedException(ifolder, account.name + "/" + folder.name + " unexpectedly closed", ex); |
nothing calls this directly
no test coverage detected