Package javax.mail
Class Flags.Flag
java.lang.Object
javax.mail.Flags.Flag
- Enclosing class:
- Flags
This inner class represents an individual system flag. A set
of standard system flag objects are predefined here.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Flags.Flag
This message has been answered.static final Flags.Flag
This message is marked deleted.static final Flags.Flag
This message is a draft.static final Flags.Flag
This message is flagged.static final Flags.Flag
This message is recent.static final Flags.Flag
This message is seen.static final Flags.Flag
A special flag that indicates that this folder supports user defined flags. -
Method Summary
-
Field Details
-
ANSWERED
This message has been answered. This flag is set by clients to indicate that this message has been answered to. -
DELETED
This message is marked deleted. Clients set this flag to mark a message as deleted. The expunge operation on a folder removes all messages in that folder that are marked for deletion. -
DRAFT
This message is a draft. This flag is set by clients to indicate that the message is a draft message. -
FLAGGED
This message is flagged. No semantic is defined for this flag. Clients alter this flag. -
RECENT
This message is recent. Folder implementations set this flag to indicate that this message is new to this folder, that is, it has arrived since the last time this folder was opened.Clients cannot alter this flag.
-
SEEN
This message is seen. This flag is implicitly set by the implementation when this Message's content is returned to the client in some form. ThegetInputStream
andgetContent
methods on Message cause this flag to be set.Clients can alter this flag.
-
USER
A special flag that indicates that this folder supports user defined flags.The implementation sets this flag. Clients cannot alter this flag but can use it to determine if a folder supports user defined flags by using
folder.getPermanentFlags().contains(Flags.Flag.USER)
.
-