aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/MessageFlag.java
blob: c06f1a7697ee1dc0bc5b635cc46219e4eb07d6a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.libmailcore;

/** Flags of a message.
    @see com.libmailcore.IMAPMessage#flags() */
public class MessageFlag {
    final public static int MessageFlagNone          = 0;
    final public static int MessageFlagSeen          = 1 << 0;
    final public static int MessageFlagAnswered      = 1 << 1;
    final public static int MessageFlagFlagged       = 1 << 2;
    final public static int MessageFlagDeleted       = 1 << 3;
    final public static int MessageFlagDraft         = 1 << 4;
    final public static int MessageFlagMDNSent       = 1 << 5;
    final public static int MessageFlagForwarded     = 1 << 6;
    final public static int MessageFlagSubmitPending = 1 << 7;
    final public static int MessageFlagSubmitted     = 1 << 8;
    final public static int MessageFlagMaskAll = MessageFlagSeen | MessageFlagAnswered | MessageFlagFlagged |
        MessageFlagDeleted | MessageFlagDraft | MessageFlagMDNSent | MessageFlagForwarded |
            MessageFlagSubmitPending | MessageFlagSubmitted;
}