i2p.susi.webmail.pop3
Class POP3MailBox

java.lang.Object
  extended by i2p.susi.webmail.pop3.POP3MailBox

public class POP3MailBox
extends java.lang.Object

Author:
susi23

Constructor Summary
POP3MailBox(java.lang.String host, int port, java.lang.String user, java.lang.String pass)
           
 
Method Summary
 void close()
           
 boolean delete(java.lang.String uidl)
           
 ReadBuffer getBody(java.lang.String uidl)
           
 ReadBuffer getHeader(java.lang.String uidl)
           
 int getNumMails()
           
 int getSize(java.lang.String uidl)
           
 java.lang.String getUIDLfromID(int id)
           
 java.lang.Object[] getUIDLs()
           
 boolean isConnected()
          check whether connection is still alive
 java.lang.String lastError()
           
static void main(java.lang.String[] args)
           
 void performDelete()
           
 void refresh()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POP3MailBox

public POP3MailBox(java.lang.String host,
                   int port,
                   java.lang.String user,
                   java.lang.String pass)
Parameters:
host -
port -
user -
pass -
Method Detail

getHeader

public ReadBuffer getHeader(java.lang.String uidl)
Parameters:
uidl -
Returns:

getBody

public ReadBuffer getBody(java.lang.String uidl)
Parameters:
uidl -
Returns:

delete

public boolean delete(java.lang.String uidl)
Parameters:
uidl -
Returns:

getSize

public int getSize(java.lang.String uidl)
Parameters:
uidl -
Returns:

isConnected

public boolean isConnected()
check whether connection is still alive

Returns:
true or false

refresh

public void refresh()

getNumMails

public int getNumMails()
Returns:

lastError

public java.lang.String lastError()
Returns:

close

public void close()

getUIDLfromID

public java.lang.String getUIDLfromID(int id)
Parameters:
id -
Returns:

getUIDLs

public java.lang.Object[] getUIDLs()
Returns:

main

public static void main(java.lang.String[] args)
Parameters:
args -

performDelete

public void performDelete()