Interface MailFolder

  • All Known Implementing Classes:
    ImapSessionFolder

    public interface MailFolder
    Represents a mailbox within an Store. May provide storage for MovingMessage objects, or be a non-selectable placeholder in the Mailbox hierarchy. TODO this is a "grown" interface, which needs some more design and thought re: how it will fit in with the other mail storage in James.
    Version:
    $Revision: 109034 $
    Author:
    Darrell DeBoer
    • Method Detail

      • getFullName

        String getFullName()
      • getPermanentFlags

        jakarta.mail.Flags getPermanentFlags()
      • getMessageCount

        int getMessageCount()
      • getRecentCount

        int getRecentCount​(boolean reset)
      • getUidValidity

        long getUidValidity()
      • getFirstUnseen

        int getFirstUnseen()
      • getUnseenCount

        int getUnseenCount()
      • isSelectable

        boolean isSelectable()
      • getUIDNext

        long getUIDNext()
      • appendMessage

        long appendMessage​(jakarta.mail.internet.MimeMessage message,
                           jakarta.mail.Flags flags,
                           Date internalDate)
        Appends a message.
        Parameters:
        message - the message.
        flags - the flags.
        internalDate - the received date
        Returns:
        the uid.
      • deleteAllMessages

        void deleteAllMessages()
      • expunge

        void expunge​(IdRange[] idRanges)
        Expunges flagged for deletion messages in given range.
        Parameters:
        idRanges - the ranges. Can be null.
        See Also:
        ExpungeCommand
      • store

        void store​(jakarta.mail.internet.MimeMessage mail)
            throws Exception
        Throws:
        Exception
      • getMessageUids

        long[] getMessageUids()
      • search

        long[] search​(jakarta.mail.search.SearchTerm searchTerm)
      • signalDeletion

        void signalDeletion()