protected void condstoreEnablingCommand(ImapSession session, Responder responder, MetaData metaData, boolean sendHighestModSeq) { Set<String> enabled = EnableProcessor.getEnabledCapabilities(session); if (!enabled.contains(ImapConstants.SUPPORTS_CONDSTORE)) { if (sendHighestModSeq) { if (metaData.isModSeqPermanent()) { final long highestModSeq = metaData.getHighestModSeq(); StatusResponse untaggedOk = getStatusResponseFactory().untaggedOk(HumanReadableText.HIGHEST_MOD_SEQ, ResponseCode.highestModSeq(highestModSeq)); responder.respond(untaggedOk); } } enabled.add(ImapConstants.SUPPORTS_CONDSTORE); } }
protected void condstoreEnablingCommand(ImapSession session, Responder responder, MetaData metaData, boolean sendHighestModSeq) { Set<String> enabled = EnableProcessor.getEnabledCapabilities(session); if (!enabled.contains(ImapConstants.SUPPORTS_CONDSTORE)) { if (sendHighestModSeq) { if (metaData.isModSeqPermanent()) { final long highestModSeq = metaData.getHighestModSeq(); StatusResponse untaggedOk = getStatusResponseFactory().untaggedOk(HumanReadableText.HIGHEST_MOD_SEQ, ResponseCode.highestModSeq(highestModSeq)); responder.respond(untaggedOk); } } enabled.add(ImapConstants.SUPPORTS_CONDSTORE); } }
okComplete(command, tag, ResponseCode.highestModSeq(mdata.getHighestModSeq()), responder); } else { okComplete(command, tag, responder);
okComplete(command, tag, ResponseCode.highestModSeq(mdata.getHighestModSeq()), responder); } else { okComplete(command, tag, responder);
private void highestModSeq(Responder responder, MetaData metaData, SelectedMailbox selected) { final StatusResponse untaggedOk; if (metaData.isModSeqPermanent()) { final long highestModSeq = metaData.getHighestModSeq(); untaggedOk = statusResponseFactory.untaggedOk(HumanReadableText.HIGHEST_MOD_SEQ, ResponseCode.highestModSeq(highestModSeq)); } else { untaggedOk = statusResponseFactory.untaggedOk(HumanReadableText.NO_MOD_SEQ, ResponseCode.noModSeq()); } responder.respond(untaggedOk); }
private void highestModSeq(Responder responder, MetaData metaData, SelectedMailbox selected) { final StatusResponse untaggedOk; if (metaData.isModSeqPermanent()) { final long highestModSeq = metaData.getHighestModSeq(); untaggedOk = statusResponseFactory.untaggedOk(HumanReadableText.HIGHEST_MOD_SEQ, ResponseCode.highestModSeq(highestModSeq)); } else { untaggedOk = statusResponseFactory.untaggedOk(HumanReadableText.NO_MOD_SEQ, ResponseCode.noModSeq()); } responder.respond(untaggedOk); }