MCPcopy Create free account
hub / github.com/M66B/FairEmail / doCommand

Method doCommand

app/src/main/java/eu/faircode/email/Core.java:207–215  ·  view source on GitHub ↗
(IMAPProtocol protocol)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 15

iMethod · 0.95
chunkListMethod · 0.95
getItemMethod · 0.95
queueMethod · 0.95
eMethod · 0.95
createUIDSetsMethod · 0.95
toLongArrayMethod · 0.95
getTimestampMethod · 0.80
statusMethod · 0.80
isGmailMethod · 0.80
isOutlookMethod · 0.80
addAllMethod · 0.80

Tested by

no test coverage detected