Tabnine Logo
HumanReadableText.unseen
Code IndexAdd Tabnine to your IDE (free)

How to use
unseen
method
in
org.apache.james.imap.api.display.HumanReadableText

Best Java code snippets using org.apache.james.imap.api.display.HumanReadableText.unseen (Showing top 2 results out of 315)

origin: org.apache.james.protocols/protocols-imap

private boolean unseen(Responder responder, MessageUid firstUnseen, SelectedMailbox selected, MailboxSession session) throws MailboxException {
  if (firstUnseen != null) {
    final MessageUid unseenUid = firstUnseen;
    int msn = selected.msn(unseenUid);
    if (msn == SelectedMailbox.NO_SUCH_MESSAGE) {
      LOGGER.debug("No message found with uid {} in mailbox {}", unseenUid, selected.getPath().getFullName(session.getPathDelimiter()));
      return false;
    } 
    final StatusResponse untaggedOk = statusResponseFactory.untaggedOk(HumanReadableText.unseen(msn), ResponseCode.unseen(msn));
    responder.respond(untaggedOk);
  }
  return true;
}
origin: org.apache.james/apache-james-imap-processor

private boolean unseen(Responder responder, Long firstUnseen, final SelectedMailbox selected, MailboxSession session) throws MailboxException {
  if (firstUnseen != null) {
    final long unseenUid = firstUnseen;
    int msn = selected.msn(unseenUid);
    if (msn == SelectedMailbox.NO_SUCH_MESSAGE) {
      if (session.getLog().isDebugEnabled()) {
        session.getLog().debug("No message found with uid " + unseenUid + " in mailbox " + selected.getPath().getFullName(session.getPathDelimiter()));
      }
      return false;
    } 
    final StatusResponse untaggedOk = statusResponseFactory.untaggedOk(HumanReadableText.unseen(msn), ResponseCode.unseen(msn));
    responder.respond(untaggedOk);
  }
  return true;
}
org.apache.james.imap.api.displayHumanReadableTextunseen

Popular methods of HumanReadableText

  • <init>
  • getDefaultValue
    Gets the default value for this text.
  • getParameters
    Gets parameters that may be substituted into the text.
  • permanentFlags
  • getKey
    Gets a unique key that can be used to loopup the text. How this is performed is implementation indep
  • toString

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now