java.lang.Object | +----pop3
Return the contents of a mail message and append it to the specified mail file.
This will make a socket connection to the host specified in the constructor (port 110)
Mark the mail message for deletion Mail message will be deleted when QUIT is issued.
Return the number/size of msgs on the server.
These values are set by an internal STAT issued at login
Get the size of the specified mail msg
If n is not specified then get a list of msgs and the size of each one ...
Login the specified user with the specified password
If the login is successful, a "STAT" command is issued
to get the current number of messages.
Does not do anything but it will keep the server active
Quit the session with the POP3 server ...
Get the contents of a mail message
The array of strings obtained are the lines of the specified mail message.
Reset the mail messages that have been marked for deletion Nothing will be deleted if QUIT is issued next.
Get the number of messages and the total size from the server ...
Get the top n lines of a mail message
The array of strings obtained are the lines of the mail headers and the top N lines of the indicated mail msg.
Get the uidl of the specified mail msg
If msgnum is not specified then get a list of msgs and
the uidl of each one
...
public popStatus connect(String host)
This will make a socket connection to the host specified in the constructor (port 110)
public popStatus connect(String host, int port)
public synchronized popStatus connect()
public popStatus login(String user, String password)
Login the specified user with the specified password
If the login is successful, a "STAT" command is issued
to get the current number of messages.
public synchronized popStatus login()
public synchronized popStatus stat()
Get the number of messages and the total size from the server ...
public synchronized popStatus quit()
Quit the session with the POP3 server ...
public synchronized popStatus list(int msgnum)
Get the size of the specified mail msg
If n is not specified then get a list of msgs and the size of each one ...
public synchronized popStatus list()
public synchronized popStatus uidl(int msgnum)
Get the uidl of the specified mail msg
If msgnum is not specified then get a list of msgs and
the uidl of each one
...
public synchronized popStatus uidl()
public synchronized popStatus retr(int msgnum)
Get the contents of a mail message
The array of strings obtained are the lines of the
specified mail message.
The lines have CR/LF striped, any leading "." fixed up
and the ending "." removed.
The array can be retrieved with the status.Responses() method.
The +OK or -ERR status line is returned
public synchronized popStatus top(int msgnum, int n)
Get the top n lines of a mail message
The array of strings obtained are the lines of the
mail headers and the top N lines of the indicated mail msg.
The lines have CR/LF striped, any leading "." fixed up
and the ending "." removed.
The array can be retrieved with status.Responses() method.
The +OK or -ERR status line is returned
public synchronized popStatus dele(int msgnum)
Mark the mail message for deletion Mail message will be deleted when QUIT is issued.
public synchronized popStatus rset()
Reset the mail messages that have been marked for deletion Nothing will be deleted if QUIT is issued next.
public synchronized popStatus noop()
Does not do anything but it will keep the server active
public int get_TotalMsgs()
Return the number/size of msgs on the server.
These values are set by an internal STAT issued at login
public int get_TotalSize()
public synchronized popStatus appendFile(String filename, int msgnum)
Return the contents of a mail message and append it to the specified mail file. It will internally call RETR and then write the results to the specified file.
public void setDebugOn(boolean OnOff)
public void debug(String debugstr)