| java.lang.Object | ||
| ↳ | com.google.code.javax.mail.Folder | |
| ↳ | com.google.code.com.sun.mail.pop3.POP3Folder | |
A POP3 GmailFolder (can only be "INBOX"). See the com.sun.mail.pop3 package documentation for further information on the POP3 protocol provider.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.code.javax.mail.Folder
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| doneUidl | |||||||||||
| exists | |||||||||||
| fileCache | |||||||||||
| message_cache | |||||||||||
| name | |||||||||||
| opened | |||||||||||
| port | |||||||||||
| size | |||||||||||
| store | |||||||||||
| total | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.code.javax.mail.Folder
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Always throws
MethodNotSupportedException
because the POP3 protocol doesn't support appending messages. | |||||||||||
Close this GmailFolder.
| |||||||||||
Always returns
false; the POP3 protocol doesn't
support creating folders. | |||||||||||
Always throws
MethodNotSupportedException
because the POP3 protocol doesn't allow the INBOX to
be deleted. | |||||||||||
Always true for the folder "INBOX", always false for
any other name.
| |||||||||||
Always throws
MethodNotSupportedException
because the POP3 protocol doesn't support expunging messages
without closing the folder; call the close method
with the expunge argument set to true
instead. | |||||||||||
Prefetch information about POP3 messages.
| |||||||||||
Always throws
MessagingException because no POP3 folders
can contain subfolders. | |||||||||||
Returns the full name of this GmailFolder.
| |||||||||||
Get the Message object corresponding to the given message
number.
| |||||||||||
Will not change while the folder is open because the POP3
protocol doesn't support notification of new messages
arriving in open folders.
| |||||||||||
Returns the name of this GmailFolder.
| |||||||||||
Returns the parent folder of this folder.
| |||||||||||
Always returns an empty
Flags object because
the POP3 protocol doesn't support any permanent flags. | |||||||||||
Always returns a NUL character because POP3 doesn't support a hierarchy.
| |||||||||||
Return the size of this folder, as was returned by the POP3 STAT
command when this folder was opened.
| |||||||||||
Return the sizes of all messages in this folder, as returned
by the POP3 LIST command.
| |||||||||||
Always returns GmailFolder.HOLDS_MESSAGES.
| |||||||||||
Return the unique ID string for this message, or null if
not available.
| |||||||||||
Always returns
false; the POP3 protocol provides
no way to determine when a new message arrives. | |||||||||||
Indicates whether this GmailFolder is in the 'open' state.
| |||||||||||
Always throws
MessagingException because no POP3 folders
can contain subfolders. | |||||||||||
Return the raw results of the POP3 LIST command with no arguments.
| |||||||||||
Throws
FolderNotFoundException unless this
folder is named "INBOX". | |||||||||||
Always throws
MethodNotSupportedException
because the POP3 protocol doesn't support multiple folders. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Close the folder when we're finalized.
| |||||||||||
Notify all MessageChangedListeners.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.code.javax.mail.Folder
| |||||||||||
From class
java.lang.Object
| |||||||||||
Always throws MethodNotSupportedException
because the POP3 protocol doesn't support appending messages.
| msgs | Array of Messages to be appended |
|---|
| MethodNotSupportedException | always |
|---|---|
| MessagingException |
Close this GmailFolder. This method is valid only on open Folders.
A CLOSED ConnectionEvent is delivered to any ConnectionListeners registered on this GmailFolder. Note that the folder is closed even if this method terminates abnormally by throwing a MessagingException.
| expunge | Expunges all deleted messages if this flag is true |
|---|
| MessagingException |
|---|
Always returns false; the POP3 protocol doesn't
support creating folders.
| type | The type of this folder. |
|---|
| MessagingException |
|---|
Always throws MethodNotSupportedException
because the POP3 protocol doesn't allow the INBOX to
be deleted.
| recurse |
|---|
| MethodNotSupportedException | always |
|---|---|
| MessagingException |
Always true for the folder "INBOX", always false for any other name.
Always throws MethodNotSupportedException
because the POP3 protocol doesn't support expunging messages
without closing the folder; call the close method
with the expunge argument set to true
instead.
| MethodNotSupportedException | always |
|---|---|
| MessagingException |
Prefetch information about POP3 messages.
If the FetchProfile contains UIDFolder.FetchProfileItem.UID,
POP3 UIDs for all messages in the folder are fetched using the POP3
UIDL command.
If the FetchProfile contains FetchProfile.Item.ENVELOPE,
the headers and size of all messages are fetched using the POP3 TOP
and LIST commands.
| msgs | Fetch items for these messages |
|---|---|
| fp | The FetchProfile |
| MessagingException |
|---|
Always throws MessagingException because no POP3 folders
can contain subfolders.
| name | Name of the GmailFolder |
|---|
| MessagingException | always |
|---|
Returns the full name of this GmailFolder. If the folder resides under the root hierarchy of this Store, the returned name is relative to the root. Otherwise an absolute name, starting with the hierarchy delimiter, is returned.
This method can be invoked on a closed GmailFolder.
Get the Message object corresponding to the given message number. A Message object's message number is the relative position of this Message in its GmailFolder. Messages are numbered starting at 1 through the total number of message in the folder. Note that the message number for a particular Message can change during a session if other messages in the GmailFolder are deleted and the GmailFolder is expunged.
Message objects are light-weight references to the actual message that get filled up on demand. Hence GmailFolder implementations are expected to provide light-weight Message objects.
Unlike GmailFolder objects, repeated calls to getMessage with the same message number will return the same Message object, as long as no messages in this folder have been expunged.
Since message numbers can change within a session if the folder is expunged , clients are advised not to use message numbers as references to messages. Use Message objects instead.
| msgno | The message number |
|---|
| MessagingException |
|---|
Will not change while the folder is open because the POP3 protocol doesn't support notification of new messages arriving in open folders.
| MessagingException |
|---|
Returns the name of this GmailFolder.
This method can be invoked on a closed GmailFolder.
Returns the parent folder of this folder. This method can be invoked on a closed GmailFolder. If this folder is the top of a folder hierarchy, this method returns null.
Note that since GmailFolder objects are not cached, invoking this method returns a new distinct GmailFolder object.
Always returns an empty Flags object because
the POP3 protocol doesn't support any permanent flags.
Always returns a NUL character because POP3 doesn't support a hierarchy.
Return the size of this folder, as was returned by the POP3 STAT command when this folder was opened.
| IllegalStateException | if the folder isn't open |
|---|---|
| MessagingException |
Return the sizes of all messages in this folder, as returned by the POP3 LIST command. Each entry in the array corresponds to a message; entry i corresponds to message number i+1.
| IllegalStateException | if the folder isn't open |
|---|---|
| MessagingException |
Always returns GmailFolder.HOLDS_MESSAGES.
Return the unique ID string for this message, or null if not available. Uses the POP3 UIDL command.
| msg |
|---|
| MessagingException |
|---|
Always returns false; the POP3 protocol provides
no way to determine when a new message arrives.
| MessagingException |
|---|
Indicates whether this GmailFolder is in the 'open' state.
Always throws MessagingException because no POP3 folders
can contain subfolders.
| pattern | The match pattern |
|---|
| MessagingException | always |
|---|
Return the raw results of the POP3 LIST command with no arguments.
| IllegalStateException | if the folder isn't open |
|---|---|
| IOException | |
| MessagingException |
Throws FolderNotFoundException unless this
folder is named "INBOX".
| mode | Open the GmailFolder READ_ONLY or READ_WRITE |
|---|
| FolderNotFoundException | if not INBOX |
|---|---|
| MessagingException | other open failures |
Always throws MethodNotSupportedException
because the POP3 protocol doesn't support multiple folders.
| f | A folder representing the new name for this GmailFolder |
|---|
| MethodNotSupportedException | always |
|---|---|
| MessagingException |
Close the folder when we're finalized.
| Throwable |
|---|
Notify all MessageChangedListeners. GmailFolder implementations are expected to use this method to broadcast MessageChanged events.
The provided implementation queues the event into an internal event queue. An event dispatcher thread dequeues events from the queue and dispatches them to registered MessageChangedListeners. Note that the event dispatching occurs in a separate thread, thus avoiding potential deadlock problems.
| type | |
|---|---|
| m |