Methods Summary |
---|
public void | appendMessages(Message[] msgs)
// Not applicable on DefaultFolder
throw new MethodNotSupportedException("Cannot append to Default Folder");
|
public boolean | delete(boolean recurse)
// Not applicable on DefaultFolder
throw new MethodNotSupportedException("Cannot delete Default Folder");
|
public Message[] | expunge()
// Not applicable on DefaultFolder
throw new MethodNotSupportedException("Cannot expunge Default Folder");
|
public javax.mail.Folder | getFolder(java.lang.String name)
return new IMAPFolder(name, UNKNOWN_SEPARATOR, (IMAPStore)store);
|
public synchronized java.lang.String | getName()
return fullName;
|
public javax.mail.Folder | getParent()
return null;
|
public boolean | hasNewMessages()
// Not applicable on DefaultFolder
return false;
|
public synchronized javax.mail.Folder[] | list(java.lang.String pattern)
ListInfo[] li = null;
li = (ListInfo[])doCommand(new ProtocolCommand() {
public Object doCommand(IMAPProtocol p) throws ProtocolException {
return p.list("", pattern);
}
});
if (li == null)
return new Folder[0];
IMAPFolder[] folders = new IMAPFolder[li.length];
for (int i = 0; i < folders.length; i++)
folders[i] = new IMAPFolder(li[i], (IMAPStore)store);
return folders;
|
public synchronized javax.mail.Folder[] | listSubscribed(java.lang.String pattern)
ListInfo[] li = null;
li = (ListInfo[])doCommand(new ProtocolCommand() {
public Object doCommand(IMAPProtocol p) throws ProtocolException {
return p.lsub("", pattern);
}
});
if (li == null)
return new Folder[0];
IMAPFolder[] folders = new IMAPFolder[li.length];
for (int i = 0; i < folders.length; i++)
folders[i] = new IMAPFolder(li[i], (IMAPStore)store);
return folders;
|
public boolean | renameTo(javax.mail.Folder f)
// Not applicable on DefaultFolder
throw new MethodNotSupportedException("Cannot rename Default Folder");
|