org.YoUmail.maildir
Class MaildirStore

java.lang.Object
  extended byjavax.mail.Service
      extended byjavax.mail.Store
          extended byorg.YoUmail.maildir.MaildirStore

public final class MaildirStore
extends javax.mail.Store

The storage class implementing the Maildir mailbox format.

Author:
Chris Burdess,modified by topmint

Nested Class Summary
 
Nested classes inherited from class javax.mail.Service
 
Field Summary
private static char separatorChar
           
 
Fields inherited from class javax.mail.Store
 
Fields inherited from class javax.mail.Service
debug, session, url
 
Constructor Summary
MaildirStore(javax.mail.Session session, javax.mail.URLName urlname)
          Constructor.
 
Method Summary
private  boolean exists(java.lang.String filename)
           
 javax.mail.Folder getDefaultFolder()
          Returns the default folder.
 javax.mail.Folder getFolder(java.lang.String filename)
          Returns the folder with the specified filename.
 javax.mail.Folder getFolder(javax.mail.URLName urlname)
          Returns the folder specified by the filename of the URLName.
 javax.mail.Session getSession()
          ·µ»Øsession
private  boolean isMaildir(java.lang.String path)
           
(package private)  void log(java.lang.String message)
          Print a log message.
protected  boolean protocolConnect(java.lang.String host, int port, java.lang.String username, java.lang.String password)
          There isn't a protocol to implement, so this method just returns.
(package private)  java.lang.String toFilename(java.lang.String filename)
           
 
Methods inherited from class javax.mail.Store
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener
 
Methods inherited from class javax.mail.Service
addConnectionListener, close, connect, connect, connect, finalize, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

separatorChar

private static final char separatorChar
See Also:
Constant Field Values
Constructor Detail

MaildirStore

public MaildirStore(javax.mail.Session session,
                    javax.mail.URLName urlname)
Constructor.

Method Detail

protocolConnect

protected boolean protocolConnect(java.lang.String host,
                                  int port,
                                  java.lang.String username,
                                  java.lang.String password)
There isn't a protocol to implement, so this method just returns.


getDefaultFolder

public javax.mail.Folder getDefaultFolder()
Returns the default folder.


getFolder

public javax.mail.Folder getFolder(java.lang.String filename)
Returns the folder with the specified filename.


toFilename

java.lang.String toFilename(java.lang.String filename)

exists

private boolean exists(java.lang.String filename)

isMaildir

private boolean isMaildir(java.lang.String path)

getFolder

public javax.mail.Folder getFolder(javax.mail.URLName urlname)
Returns the folder specified by the filename of the URLName.


getSession

public javax.mail.Session getSession()
·µ»Øsession

Returns:
session

log

void log(java.lang.String message)
Print a log message.