java.lang.Object | +--javax.mail.Folder | +--gnu.mail.providers.mbox.MboxFolder
MboxFolder(Store store, String filename, boolean inbox) Constructor. |
MboxFolder(Store store, String filename) Constructor. |
synchronized boolean | Locks this mailbox. |
synchronized void | Appends messages to this folder. |
void | close(boolean expunge) Closes this folder. |
boolean | create(int type) Creates this folder in the store. |
static String | decodeFrom(String line) Returns the specified line with any From_ line encoding removed. |
boolean | delete(boolean recurse) Deletes this folder. |
boolean | exists() Indicates whether this folder exists. |
Message[] | expunge() Expunges this folder. |
String | fromLine(MboxMessage message) Returns the From_ line for the specified mbox message. |
getFolder(String filename) Returns the subfolder of this folder with the specified name. | |
String | Returns the full name of this folder. |
getMessage(int msgnum) Returns the specified message number from this folder. | |
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. |
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. |
synchronized boolean | Unlocks this mailbox. |
boolean | Renames this folder. |
protected MboxFolder(Store store, String filename)
protected MboxFolder(Store store, String filename, boolean inbox)
public synchronized boolean acquireLock()
public synchronized void appendMessages(Message m)
public void close(boolean expunge)
MessagingException
- if a messaging error occurredpublic boolean create(int type)
public static String decodeFrom(String line)
public boolean delete(boolean recurse)
public boolean exists()
MessagingException
- if a messaging error occurredpublic Message[] expunge()
MessagingException
- if a messaging error occurredprotected String fromLine(MboxMessage message)
public Folder getFolder(String filename)
public String getFullName()
public Message getMessage(int msgnum)
MessagingException
- if a messaging error occurredpublic int getMessageCount()
MessagingException
- if a messaging error occurredpublic synchronized Message[] getMessages()
MessagingException
- if a messaging error occurredpublic String getName()
public 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 synchronized boolean releaseLock()
public boolean renameTo(Folder folder)