IMAPFolder.FetchProfileItem (JavaMail API documentation)
Date: 2018-05-06

com.sun.mail.imap

## Class IMAPFolder.FetchProfileItem

- java.lang.Object
- - javax.mail.FetchProfile.Item
  - - com.sun.mail.imap.IMAPFolder.FetchProfileItem

- Enclosing class:
    IMAPFolder

      public static class IMAPFolder.FetchProfileItem
      extends FetchProfile.Item

  A fetch profile item for fetching headers. This inner class extends the `FetchProfile.Item` class to add new FetchProfile item types, specific to IMAPFolders.
  See Also:
    `FetchProfile`

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static IMAPFolder.FetchProfileItem` | `HEADERS` HEADERS is a fetch profile item that can be included in a `FetchProfile` during a fetch request to a Folder.
    `static IMAPFolder.FetchProfileItem` | `SIZE` Deprecated.

    - ### Fields inherited from class javax.mail.FetchProfile.Item

      `CONTENT_INFO, ENVELOPE, FLAGS`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `IMAPFolder.FetchProfileItem(java.lang.String name)`

  - ### Method Summary

    - ### Methods inherited from class javax.mail.FetchProfile.Item

      `toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### HEADERS

          public static final IMAPFolder.FetchProfileItem HEADERS

      HEADERS is a fetch profile item that can be included in a `FetchProfile` during a fetch request to a Folder. This item indicates that the headers for messages in the specified range are desired to be prefetched.

      An example of how a client uses this is below:

      >             FetchProfile fp = new FetchProfile();
      >             fp.add(IMAPFolder.FetchProfileItem.HEADERS);
      >             folder.fetch(msgs, fp);

    - #### SIZE

          public static final IMAPFolder.FetchProfileItem SIZE

      Deprecated.
      SIZE is a fetch profile item that can be included in a `FetchProfile` during a fetch request to a Folder. This item indicates that the sizes of the messages in the specified range are desired to be prefetched.

      SIZE was moved to FetchProfile.Item in JavaMail 1.5.

  - ### Constructor Detail

    - #### IMAPFolder.FetchProfileItem

          protected IMAPFolder.FetchProfileItem(java.lang.String name)

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms< /a>.