Package | Description |
---|---|
javax.mail | |
javax.mail.internet |
Modifier and Type | Field and Description |
---|---|
static Flags.Flag |
Flags.Flag.ANSWERED
Flag that indicates that the message has been replied to; has a bit value of 1.
|
static Flags.Flag |
Flags.Flag.DELETED
Flag that indicates that the message has been marked for deletion and
should be removed on a subsequent expunge operation; has a bit value of 2.
|
static Flags.Flag |
Flags.Flag.DRAFT
Flag that indicates that the message is a draft; has a bit value of 4.
|
static Flags.Flag |
Flags.Flag.FLAGGED
Flag that indicates that the message has been flagged; has a bit value of 8.
|
static Flags.Flag |
Flags.Flag.RECENT
Flag that indicates that the message has been delivered since the last time
this folder was opened; has a bit value of 16.
|
static Flags.Flag |
Flags.Flag.SEEN
Flag that indicates that the message has been viewed; has a bit value of 32.
|
static Flags.Flag |
Flags.Flag.USER
Flags that indicates if this folder supports user-defined flags; has a bit value of 0x80000000.
|
Modifier and Type | Method and Description |
---|---|
Flags.Flag[] |
Flags.getSystemFlags()
Return a list of
Flags containing the system flags that have been set |
Modifier and Type | Method and Description |
---|---|
void |
Flags.add(Flags.Flag flag)
Set a system flag.
|
boolean |
Flags.contains(Flags.Flag flag)
See if the supplied system flags are set
|
boolean |
Message.isSet(Flags.Flag flag)
Check whether the supplied flag is set.
|
void |
Flags.remove(Flags.Flag flag)
Unset the supplied system flag.
|
void |
Message.setFlag(Flags.Flag flag,
boolean set)
Set a flag to the supplied value.
|
Constructor and Description |
---|
Flags(Flags.Flag flag)
Construct a Flags instance with a supplied system flag set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MimeMessage.isSet(Flags.Flag flag) |
Copyright © 2013. All Rights Reserved.