Example usage for javax.mail UIDFolder getMessagesByUID

List of usage examples for javax.mail UIDFolder getMessagesByUID

Introduction

In this page you can find the example usage for javax.mail UIDFolder getMessagesByUID.

Prototype

public Message[] getMessagesByUID(long[] uids) throws MessagingException;

Source Link

Document

Get the Messages specified by the given array of UIDs.

Usage

From source file:com.liferay.mail.imap.IMAPAccessor.java

protected Message[] getMessagesByUID(Folder jxFolder, long[] remoteMessageIds) throws MessagingException {

    UIDFolder uidFolder = (UIDFolder) jxFolder;

    return uidFolder.getMessagesByUID(remoteMessageIds);
}