## Uses of Class
com.sun.mail.imap.protocol.MessageSet

- Packages that use MessageSet
  Package | Description
  --- | ---
  com.sun.mail.gimap.protocol |
  com.sun.mail.imap | An IMAP protocol provider for the JavaMail API that provides access to an IMAP message store.
  com.sun.mail.imap.protocol |

- - ### Uses of MessageSet in com.sun.mail.gimap.protocol

    Methods in com.sun.mail.gimap.protocol with parameters of type MessageSet
    Modifier and Type | Method and Description
    --- | ---
    `void` | GmailProtocol.`storeLabels(MessageSet[] msgsets, String[] labels, boolean set)` Set the specified labels on this message.

  - ### Uses of MessageSet in com.sun.mail.imap

    Methods in com.sun.mail.imap that return MessageSet
    Modifier and Type | Method and Description
    --- | ---
    `static MessageSet[]` | Utility.`toMessageSet(Message[] msgs, Utility.Condition cond)` Run thru the given array of messages, apply the given Condition on each message and generate sets of contiguous sequence-numbers for the successful messages.
    `static MessageSet[]` | Utility.`toMessageSetSorted(Message[] msgs, Utility.Condition cond)` Sort (a copy of) the given array of messages and then run thru the sorted array of messages, apply the given Condition on each message and generate sets of contiguous sequence-numbers for the successful messages.

  - ### Uses of MessageSet in com.sun.mail.imap.protocol

    Methods in com.sun.mail.imap.protocol that return MessageSet
    Modifier and Type | Method and Description
    --- | ---
    `static MessageSet[]` | MessageSet.`createMessageSets(int[] msgs)` Convert an array of integers into an array of MessageSets

    Methods in com.sun.mail.imap.protocol with parameters of type MessageSet
    Modifier and Type | Method and Description
    --- | ---
    `void` | IMAPProtocol.`copy(MessageSet[] msgsets, String mbox)` COPY command.
    `CopyUID` | IMAPProtocol.`copyuid(MessageSet[] msgsets, String mbox)` COPY command, return uid from COPYUID response code.
    `Response[]` | IMAPProtocol.`fetch(MessageSet[] msgsets, String what)`
    `void` | IMAPProtocol.`move(MessageSet[] msgsets, String mbox)` MOVE command.
    `CopyUID` | IMAPProtocol.`moveuid(MessageSet[] msgsets, String mbox)` MOVE Command, return uid from COPYUID response code.
    `int[]` | IMAPProtocol.`search(MessageSet[] msgsets, SearchTerm term)` Issue the given search criterion on the specified message sets.
    `static int` | MessageSet.`size(MessageSet[] msgsets)`
    `void` | IMAPProtocol.`storeFlags(MessageSet[] msgsets, Flags flags, boolean set)`
    `static String` | MessageSet.`toString(MessageSet[] msgsets)` Convert an array of MessageSets into an IMAP sequence range

Copyright © 2016 Oracle. All rights reserved.