java.lang.Object | +--javax.mail.Folder | +--gnu.mail.providers.maildir.MaildirFolder
MaildirFolder(Store store, String filename, boolean root, boolean inbox) Constructor. |
MaildirFolder(Store store, String filename) Constructor. |
synchronized void | Appends messages to this folder. |
void | close(boolean expunge) Closes this folder. |
boolean | create(int type) Creates this folder in the store. |
boolean | delete(boolean recurse) Deletes this folder. |
boolean | exists() Indicates whether this folder exists. |
Message[] | expunge() Expunges this folder. |
getFolder(String filename) Returns the subfolder of this folder with the specified name. | |
String | Returns the full name of this folder. |
synchronized Message | getMessage(int msgnum) Returns the specified message number from this folder. |
synchronized int | Returns the number of messages in this folder. |
synchronized Message[] | Returns the messages in this folder. |
String | getName() Returns the name of this folder. |
synchronized int | Returns the number of new messages in this folder. |
Returns the parent folder. | |
Returns the permanent flags for this folder. | |
char | Returns the separator character. |
int | getType() Returns the type of this folder. |
Return a URLName representing this folder. | |
boolean | Indicates whether this folder contains new messages. |
boolean | isOpen() Indicates whether this folder is open. |
Folder[] | list() Returns the subfolders of this folder. |
Folder[] | list(String pattern) Returns the subfolders of this folder matching the specified pattern. |
void | open(int mode) Opens this folder. |
boolean | Renames this folder. |
protected MaildirFolder(Store store, String filename)
protected MaildirFolder(Store store, String filename, boolean root, boolean inbox)
public synchronized void appendMessages(Message m)
public void close(boolean expunge)
MessagingException
- if a messaging error occurredpublic boolean create(int type)
public boolean delete(boolean recurse)
public boolean exists()
MessagingException
- if a messaging error occurredpublic Message[] expunge()
MessagingException
- if a messaging error occurredpublic Folder getFolder(String filename)
public String getFullName()
public synchronized Message getMessage(int msgnum)
MessagingException
- if a messaging error occurredpublic synchronized int getMessageCount()
MessagingException
- if a messaging error occurredpublic synchronized Message[] getMessages()
MessagingException
- if a messaging error occurredpublic String getName()
public synchronized int getNewMessageCount()
MessagingException
- if a messaging error occurredpublic Folder getParent()
public Flags getPermanentFlags()
public char getSeparator()
public int getType()
MessagingException
- if a messaging error occurredpublic URLName getURLName()
public boolean hasNewMessages()
MessagingException
- if a messaging error occurredpublic boolean isOpen()
public Folder[] list()
public Folder[] list(String pattern)
public void open(int mode)
MessagingException
- if a messaging error occurredpublic boolean renameTo(Folder folder)