/** * Package private constructor. * * <p>Note that nested messages have no containing folder, nor a message number. */ IMAPNestedMessage(IMAPMessage m, BODYSTRUCTURE b, ENVELOPE e, String sid) { super(m._getSession()); msg = m; bs = b; envelope = e; sectionId = sid; setPeek(m.getPeek()); }
/* * Get the enclosing message's sequence number. Overrides * IMAPMessage.getSequenceNumber(). */ protected int getSequenceNumber() { return msg.getSequenceNumber(); }
/* * Get the enclosing message's messageCacheLock. Overrides * IMAPMessage.getMessageCacheLock(). */ protected Object getMessageCacheLock() { return msg.getMessageCacheLock(); }
/* * Is this an IMAP4 REV1 server? */ protected boolean isREV1() throws FolderClosedException { return msg.isREV1(); }
/* * Get the enclosing message's Protocol object. Overrides * IMAPMessage.getProtocol(). */ protected IMAPProtocol getProtocol() throws ProtocolException, FolderClosedException { return msg.getProtocol(); }
/* * Get the enclosing message's fetchBlockSize. */ protected int getFetchBlockSize() { return msg.getFetchBlockSize(); }
/* * Check whether the enclosing message is expunged. Overrides * Message.isExpunged(). */ public boolean isExpunged() { return msg.isExpunged(); }
/* * Check whether the enclosing message is expunged. Overrides * IMAPMessage.checkExpunged(). */ protected void checkExpunged() throws MessageRemovedException { msg.checkExpunged(); }