aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/IMAPMessagesRequestKind.java
blob: 8219903001f166dc516e5ba2600c0702eaab4f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.libmailcore;

/**
    Items to request when fetching the list of messages.
    @see com.libmailcore.IMAPSession#fetchMessagesByUIDOperation(String folder, int requestKind, IndexSet indexes)
    @see com.libmailcore.IMAPSession#fetchMessagesByNumberOperation(String folder, int requestKind, IndexSet indexes)
    @see com.libmailcore.IMAPSession#syncMessagesByUIDOperation(String folder, int requestKind, IndexSet indexes, long modSeq)
*/
public class IMAPMessagesRequestKind {
    /** Requests UID of the messages. */
    public final static int IMAPMessagesRequestKindUid = 0;
    /** Requests the flags of the messages. */
    public final static int IMAPMessagesRequestKindFlags = 1 << 0;
    /** Requests the headers of the messages (ENVELOPE). */
    public final static int IMAPMessagesRequestKindHeaders = 1 << 1;
    /** Requests the MIME Structure of the messages (BODYSTRUCTURE). */
    public final static int IMAPMessagesRequestKindStructure = 1 << 2;
    /** Requests the received date of the messages (INTERNALDATE). */
    public final static int IMAPMessagesRequestKindInternalDate = 1 << 3;
    /** Requests the headers of the messages. They will be parsed by MailCore. */
    public final static int IMAPMessagesRequestKindFullHeaders = 1 << 4;
    /** Requests the header "Subject". */
    public final static int IMAPMessagesRequestKindHeaderSubject = 1 << 5;
    /** Requests the Labels on Gmail server. */
    public final static int IMAPMessagesRequestKindGmailLabels = 1 << 6;
    /** Requests the message identifier on Gmail server. */
    public final static int IMAPMessagesRequestKindGmailMessageID = 1 << 7;
    /** Requests the message thread identifier on Gmail server. */
    public final static int IMAPMessagesRequestKindGmailThreadID = 1 << 8;
    /**
        Requests extra headers.
        @see com.libmailcore.IMAPFetchMessagesOperation#setExtraHeaders
    */
    public final static int IMAPMessagesRequestKindExtraHeaders = 1 << 9;
    /** Requests the size of the messages. */
    public final static int IMAPMessagesRequestKindSize = 1 << 10;
}