/** * Get the specified message. */ public synchronized Message getMessage(int msgnum) throws MessagingException { checkOpened(); checkRange(msgnum); return messageCache.getMessage(msgnum); }
/** * Get the specified message. */ @Override public synchronized Message getMessage(int msgnum) throws MessagingException { checkOpened(); checkRange(msgnum); return messageCache.getMessage(msgnum); }
/** * {@inheritDoc} */ @Override public synchronized Message[] getMessages() throws MessagingException { /* * Need to override Folder method to throw FolderClosedException * instead of IllegalStateException if not really closed. */ checkOpened(); int total = getMessageCount(); Message[] msgs = new Message[total]; for (int i = 1; i <= total; i++) msgs[i - 1] = messageCache.getMessage(i); return msgs; }
/** * {@inheritDoc} */ @Override public synchronized Message[] getMessages() throws MessagingException { /* * Need to override Folder method to throw FolderClosedException * instead of IllegalStateException if not really closed. */ checkOpened(); int total = getMessageCount(); Message[] msgs = new Message[total]; for (int i = 1; i <= total; i++) msgs[i - 1] = messageCache.getMessage(i); return msgs; }
/** * Get the message object for the indicated sequence number. * If the message object hasn't been created, create it. * Return null if there's no message with that sequence number. * * @param seqnum the sequence number of the message * @return the message */ public IMAPMessage getMessageBySeqnum(int seqnum) { int msgnum = msgnumOf(seqnum); if (msgnum < 0) { // XXX - < 1 ? if (logger.isLoggable(Level.FINE)) logger.fine("no message seqnum " + seqnum); return null; } else return getMessage(msgnum); }
/** * Get the message object for the indicated sequence number. * If the message object hasn't been created, create it. * Return null if there's no message with that sequence number. * * @param seqnum the sequence number of the message * @return the message */ public IMAPMessage getMessageBySeqnum(int seqnum) { int msgnum = msgnumOf(seqnum); if (msgnum < 0) { // XXX - < 1 ? if (logger.isLoggable(Level.FINE)) logger.fine("no message seqnum " + seqnum); return null; } else return getMessage(msgnum); }
IMAPMessage m = getMessage(oldnum); mlist.add(m); } else {
IMAPMessage m = getMessage(oldnum); mlist.add(m); } else {
oldnum == mnum[mnumi] && seqnumOf(oldnum) <= 0) { IMAPMessage m = getMessage(oldnum); mlist.add(m);
oldnum == mnum[mnumi] && seqnumOf(oldnum) <= 0) { IMAPMessage m = getMessage(oldnum); mlist.add(m);
/** * Get the message object for the indicated sequence number. * If the message object hasn't been created, create it. * Return null if there's no message with that sequence number. */ public IMAPMessage getMessageBySeqnum(int seqnum) { int msgnum = msgnumOf(seqnum); if (msgnum < 0) { // XXX - < 1 ? if (debug) out.println("DEBUG IMAP MC: no message seqnum " + seqnum); return null; } else return getMessage(msgnum); }
/** * Get the specified message. */ public synchronized Message getMessage(int msgnum) throws MessagingException { checkOpened(); checkRange(msgnum); return messageCache.getMessage(msgnum); }
/** * Get the specified message. */ @Override public synchronized Message getMessage(int msgnum) throws MessagingException { checkOpened(); checkRange(msgnum); return messageCache.getMessage(msgnum); }
/** * Get the specified message. */ @Override public synchronized Message getMessage(int msgnum) throws MessagingException { checkOpened(); checkRange(msgnum); return messageCache.getMessage(msgnum); }
/** * Get the specified message. */ @Override public synchronized Message getMessage(int msgnum) throws MessagingException { checkOpened(); checkRange(msgnum); return messageCache.getMessage(msgnum); }
/** * Get the specified message. */ @Override public synchronized Message getMessage(int msgnum) throws MessagingException { checkOpened(); checkRange(msgnum); return messageCache.getMessage(msgnum); }
/** * {@inheritDoc} */ @Override public synchronized Message[] getMessages() throws MessagingException { /* * Need to override Folder method to throw FolderClosedException * instead of IllegalStateException if not really closed. */ checkOpened(); int total = getMessageCount(); Message[] msgs = new Message[total]; for (int i = 1; i <= total; i++) msgs[i - 1] = messageCache.getMessage(i); return msgs; }
/** * {@inheritDoc} */ @Override public synchronized Message[] getMessages() throws MessagingException { /* * Need to override Folder method to throw FolderClosedException * instead of IllegalStateException if not really closed. */ checkOpened(); int total = getMessageCount(); Message[] msgs = new Message[total]; for (int i = 1; i <= total; i++) msgs[i - 1] = messageCache.getMessage(i); return msgs; }
msgs[i] = messageCache.getMessage(++oldtotal);
msgs[i] = messageCache.getMessage(++oldtotal);