|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjasp.jmail.POP3
Implements the JMail.POP3 components in Java
| Constructor Summary | |
POP3()
|
|
| Method Summary | |
void |
Connect(java.lang.String username,
java.lang.String pass,
java.lang.String server)
|
void |
Connect(java.lang.String username,
java.lang.String pass,
java.lang.String server,
int port)
Opens the connection to the POP3 Server, the port argument is optional and defaults to 110. |
void |
DeleteMessages()
Deletes all messages from the mailer server |
void |
DeleteSingleMessage(int messageid)
Deletes the single message on the mail server. |
void |
Disconnect()
Closes the connection to the server |
void |
DownloadHeaders()
Downloads all headers and adds them in the Messages Collection |
void |
DownloadMessages()
Download all messages |
void |
DownloadSingleHeader(int messageid)
Downloads the headers of a single Message,and adds them in the Messages Collection |
Message |
DownloadSingleMessage(int index)
Downloads , returns and puts the specifeid message in the Messages Collection |
void |
DownloadUnreadMessages()
Downloads all unread e-mails, the e-mails are added to Messages collection. |
int |
getCount()
|
int |
GetLastUnreadMessage()
Returns the ID of the first unread message , Return 0 if the no Message has been accessed, -1 if this command is not supported by the mail server. |
Messages |
getMessages()
Return the Messages object through which can access the Message |
java.lang.String |
GetMessageUID(int messageid)
Returns the server's uniquie id for this message |
int |
getSize()
Returns the total size of your mailbox in bytes |
java.lang.String |
Log()
This is the log create by JMail when the logging is set to TRUE |
void |
setLogging(boolean log)
Enables or disables the logging int JMail , Defualt value is false. |
void |
setTimeout(int t)
Tomout in seconds for the socket used |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public POP3()
| Method Detail |
public void Connect(java.lang.String username,
java.lang.String pass,
java.lang.String server,
int port)
throws java.lang.Exception
java.lang.Exception
public void Connect(java.lang.String username,
java.lang.String pass,
java.lang.String server)
throws java.lang.Exception
java.lang.Exception
public void DeleteMessages()
throws java.lang.Exception
java.lang.Exception
public void DeleteSingleMessage(int messageid)
throws java.lang.Exception
java.lang.Exceptionpublic void Disconnect()
public void DownloadHeaders()
throws java.lang.Exception
java.lang.Exception
public void DownloadMessages()
throws java.lang.Exception
java.lang.Exception
public void DownloadSingleHeader(int messageid)
throws java.lang.Exception
java.lang.Exception
public void DownloadUnreadMessages()
throws java.lang.Exception
java.lang.Exceptionpublic int GetLastUnreadMessage()
public java.lang.String GetMessageUID(int messageid)
throws java.lang.Exception
java.lang.Exceptionpublic int getCount()
public java.lang.String Log()
public void setLogging(boolean log)
public Messages getMessages()
public int getSize()
public Message DownloadSingleMessage(int index)
throws java.lang.Exception
java.lang.Exceptionpublic void setTimeout(int t)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||