Class pop3

Class pop3

java.lang.Object
   |
   +----pop3

public class pop3
extends Object

Method Index

 o appendFile(String, int)
Method: appendFile(filename, msgnum)

Return the contents of a mail message and append it to the specified mail file.

 o connect(String)
Method: connect()

This will make a socket connection to the host specified in the constructor (port 110)

 o connect(String, int)
 o connect()
 o debug(String)
Method: debug(String string) If debugOn switch set, display debug info
 o dele(int)
Method: dele(msgnum)

Mark the mail message for deletion Mail message will be deleted when QUIT is issued.

 o get_TotalMsgs()
Method: get_TotalMsgs()

Return the number/size of msgs on the server.
These values are set by an internal STAT issued at login

 o get_TotalSize()
 o list(int)
Method: list(n)

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 ...

 o list()
 o login(String, String)
Method: login

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.

 o login()
 o noop()
Method: noop()

Does not do anything but it will keep the server active

 o quit()
Method: quit()

Quit the session with the POP3 server ...

 o retr(int)
Method: retr(n)

Get the contents of a mail message

The array of strings obtained are the lines of the specified mail message.

 o rset()
Method: rset()

Reset the mail messages that have been marked for deletion Nothing will be deleted if QUIT is issued next.

 o setDebugOn(boolean)
Method: setDebugOn(boolean switch) Method to let caller turn the debug switch on or off
 o stat()
Method: stat()

Get the number of messages and the total size from the server ...

 o top(int, int)
Method: top(msgnum 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.

 o uidl(int)
Method: uidl(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 ...

 o uidl()

Methods

 o connect
  public popStatus connect(String host)
Method: connect()

This will make a socket connection to the host specified in the constructor (port 110)

 o connect
  public popStatus connect(String host,
                           int port)
 o connect
  public synchronized popStatus connect()
 o login
  public popStatus login(String user,
                         String password)
Method: login

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.

 o login
  public synchronized popStatus login()
 o stat
  public synchronized popStatus stat()
Method: stat()

Get the number of messages and the total size from the server ...

 o quit
  public synchronized popStatus quit()
Method: quit()

Quit the session with the POP3 server ...

 o list
  public synchronized popStatus list(int msgnum)
Method: list(n)

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 ...

 o list
  public synchronized popStatus list()
 o uidl
  public synchronized popStatus uidl(int msgnum)
Method: uidl(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 ...

 o uidl
  public synchronized popStatus uidl()
 o retr
  public synchronized popStatus retr(int msgnum)
Method: retr(n)

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

 o top
  public synchronized popStatus top(int msgnum,
                                    int n)
Method: top(msgnum 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

 o dele
  public synchronized popStatus dele(int msgnum)
Method: dele(msgnum)

Mark the mail message for deletion Mail message will be deleted when QUIT is issued.

 o rset
  public synchronized popStatus rset()
Method: rset()

Reset the mail messages that have been marked for deletion Nothing will be deleted if QUIT is issued next.

 o noop
  public synchronized popStatus noop()
Method: noop()

Does not do anything but it will keep the server active

 o get_TotalMsgs
  public int get_TotalMsgs()
Method: get_TotalMsgs()

Return the number/size of msgs on the server.
These values are set by an internal STAT issued at login

 o get_TotalSize
  public int get_TotalSize()
 o appendFile
  public synchronized popStatus appendFile(String filename,
                                           int msgnum)
Method: appendFile(filename, 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.

 o setDebugOn
  public void setDebugOn(boolean OnOff)
Method: setDebugOn(boolean switch) Method to let caller turn the debug switch on or off
 o debug
  public void debug(String debugstr)
Method: debug(String string) If debugOn switch set, display debug info