Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.mail.Folder
gnu.mail.providers.pop3.POP3Folder
public final class POP3Folder
extends Folder
Field Summary |
Fields inherited from class javax.mail.Folder | |
HOLDS_FOLDERS , HOLDS_MESSAGES , READ_ONLY , READ_WRITE , mode , store |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
boolean |
|
boolean |
|
boolean |
|
Message[] |
|
void |
|
Folder |
|
String |
|
Message |
|
int |
|
String |
|
Folder |
|
Flags |
|
char |
|
int |
|
String | |
boolean |
|
boolean |
|
Folder[] |
|
Folder[] |
|
void |
|
boolean |
public void appendMessages(Message[] messages) throws MessagingException
You can't append messages to a POP3 folder.
- Overrides:
- appendMessages in interface Folder
public void close(boolean expunge) throws MessagingException
Closes this folder.
- Parameters:
expunge
- if the folder is to be expunged before it is closed
- Throws:
MessagingException
- if a messaging error occurred
public boolean create(int i) throws MessagingException
POP3 folders can't be created, deleted, or renamed.
public boolean delete(boolean flag) throws MessagingException
POP3 folders can't be created, deleted, or renamed.
public boolean exists() throws MessagingException
Indicates whether this folder exists.
- Throws:
MessagingException
- if a messaging error occurred
public Message[] expunge() throws MessagingException
Expunges this folder. This deletes all the messages marked as deleted.
- Throws:
MessagingException
- if a messaging error occurred
public void fetch(Message[] messages, FetchProfile fp) throws MessagingException
Fetches headers and/or content for the specified messages.
- Throws:
MessagingException
- ignore
public Folder getFolder(String s) throws MessagingException
POP3 folders can't contain subfolders.
public String getFullName()
Returns the full name of this folder.
- Overrides:
- getFullName in interface Folder
public Message getMessage(int msgnum) throws MessagingException
Returns the specified message from this folder.
- Overrides:
- getMessage in interface Folder
- Parameters:
msgnum
- the message number
- Throws:
MessagingException
- if a messaging error occurred
public int getMessageCount() throws MessagingException
Returns the number of messages in this folder. This results in a STAT call to the POP3 server, so the latest count is always delivered.
- Overrides:
- getMessageCount in interface Folder
- Throws:
MessagingException
- if a messaging error occurred
public String getName()
Returns the name of this folder.
public Flags getPermanentFlags()
Returns the permanent flags for this folder.
- Overrides:
- getPermanentFlags in interface Folder
public char getSeparator() throws MessagingException
Returns the path separator charcter.
- Overrides:
- getSeparator in interface Folder
public int getType() throws MessagingException
Returns the type of this folder.
- Throws:
MessagingException
- if a messaging error occurred
public String getUID(Message message) throws MessagingException
Returns the unique ID for the given message, ornull
if not available.
- Parameters:
message
- the message
public boolean hasNewMessages() throws MessagingException
Indicates whether this folder contains new messages.
- Overrides:
- hasNewMessages in interface Folder
- Throws:
MessagingException
- if a messaging error occurred
public boolean isOpen()
Indicates whether this folder is open.
public Folder[] list(String pattern) throws MessagingException
Returns the subfolders for this folder.
public void open(int mode) throws MessagingException
Opens this folder.
- Throws:
MessagingException
- if a messaging error occurred
public boolean renameTo(Folder folder) throws MessagingException
POP3 folders can't be created, deleted, or renamed.