FileDocCategorySizeDatePackage
POP3MessageInfo.javaAPI DocApache Commons NET 1.4.1 API2626Sat Dec 03 10:05:48 GMT 2005org.apache.commons.net.pop3

POP3MessageInfo

public final class POP3MessageInfo extends Object
POP3MessageInfo is used to return information about messages stored on a POP3 server. Its fields are used to mean slightly different things depending on the information being returned.

In response to a status command, number contains the number of messages in the mailbox, size contains the size of the mailbox in bytes, and identifier is null.

In response to a message listings, number contains the message number, size contains the size of the message in bytes, and identifier is null.

In response to unique identifier listings, number contains the message number, size is undefined, and identifier contains the message's unique identifier.

author
Daniel F. Savarese

Fields Summary
public int
number
public int
size
public String
identifier
Constructors Summary
public POP3MessageInfo()
Creates a POP3MessageInfo instance with number and size set to 0, and identifier set to null.

        number = size = 0;
        identifier = null;
    
public POP3MessageInfo(int num, int octets)
Creates a POP3MessageInfo instance with number set to num , size set to octets , and identifier set to null.

        number = num;
        size = octets;
        identifier = null;
    
public POP3MessageInfo(int num, String uid)
Creates a POP3MessageInfo instance with number set to num , size undefined, and identifier set to uid.

        number = num;
        size = -1;
        identifier = uid;
    
Methods Summary