Class MaildirStore

  • All Implemented Interfaces:
    gnu.mail.treeutil.StatusSource

    public final class MaildirStore
    extends Store
    implements gnu.mail.treeutil.StatusSource
    The storage class implementing the Maildir mailbox format.
    Author:
    Chris Burdess
    • Constructor Detail

      • MaildirStore

        public MaildirStore​(Session session,
                            URLName urlname)
        Constructor.
    • Method Detail

      • protocolConnect

        protected boolean protocolConnect​(java.lang.String host,
                                          int port,
                                          java.lang.String username,
                                          java.lang.String password)
                                   throws MessagingException
        There isn't a protocol to implement, so this method just returns.
        Overrides:
        protocolConnect in class Service
        Parameters:
        host - the name of the host to connect to
        port - the port to use (-1 for the default port)
        username - the username
        password - the password
        Returns:
        true on success, false if authentication failed
        Throws:
        AuthenticationFailedException - on authentication failure
        MessagingException - for non-authentication failures
      • addStatusListener

        public void addStatusListener​(gnu.mail.treeutil.StatusListener l)
        Adds a status listener to this store. The listener will be informed of state changes during potentially lengthy procedures(opening and closing mboxes).
        Specified by:
        addStatusListener in interface gnu.mail.treeutil.StatusSource
        Parameters:
        l - the status listener
        See Also:
        removeStatusListener(gnu.mail.treeutil.StatusListener)
      • removeStatusListener

        public void removeStatusListener​(gnu.mail.treeutil.StatusListener l)
        Removes a status listener from this store.
        Specified by:
        removeStatusListener in interface gnu.mail.treeutil.StatusSource
        Parameters:
        l - the status listener
        See Also:
        addStatusListener(gnu.mail.treeutil.StatusListener)
      • processStatusEvent

        protected void processStatusEvent​(gnu.mail.treeutil.StatusEvent event)
        Processes a status event. This dispatches the event to all the registered listeners.
        Parameters:
        event - the status event