Retrieving a single email message |
Upon establishing a connection to an IMAP server you can retrieve a single message in the account mailbox by invoking the Imap#getMessage method.
Example
import com.jscape.inet.imap.*; import com.jscape.inet.email.*;
// establish connection imap.connect();
// retrieves first message in mailbox EmailMessage message = imap.getMessage(1);
See also
|