java.lang.Object | +--javax.mail.Folder | +--gnu.mail.providers.pop3.POP3Folder
POP3Folder(Store store, int type) Constructor. |
void | appendMessages(Message messages) You can't append messages to a POP3 folder. |
void | close(boolean expunge) Closes this folder. |
boolean | create(int i) POP3 folders can't be created, deleted, or renamed. |
boolean | delete(boolean flag) POP3 folders can't be created, deleted, or renamed. |
boolean | exists() Indicates whether this folder exists. |
Message[] | expunge() Expunges this folder. |
void | fetch(Message messages, FetchProfile fp) Fetches headers and/or content for the specified messages. |
getFolder(String s) POP3 folders can't contain subfolders. | |
String | Returns the full name of this folder. |
getMessage(int msgnum) Returns the specified message from this folder. | |
int | Returns the number of messages in this folder. |
String | getName() Returns the name of this folder. |
POP3 folders can't have parents. | |
Returns the permanent flags for this folder. | |
char | Returns the path separator charcter. |
int | getType() Returns the type of this folder. |
boolean | Indicates whether this folder contains new messages. |
boolean | isOpen() Indicates whether this folder is open. |
Folder[] | list() Returns the subfolders for this folder. |
Folder[] | list(String pattern) Returns the subfolders for this folder. |
void | open(int mode) Opens this folder. |
boolean | POP3 folders can't be created, deleted, or renamed. |
protected POP3Folder(Store store, int type)
public void appendMessages(Message messages)
public void close(boolean expunge)
MessagingException
- if a messaging error occurredpublic boolean create(int i)
public boolean delete(boolean flag)
public boolean exists()
MessagingException
- if a messaging error occurredpublic Message[] expunge()
MessagingException
- if a messaging error occurredpublic void fetch(Message messages, FetchProfile fp)
MessagingException
- ignorepublic Folder getFolder(String s)
public String getFullName()
public Message getMessage(int msgnum)
MessagingException
- if a messaging error occurredpublic int getMessageCount()
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 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)