- java.lang.Object
-
- javax.mail.Flags.Flag
-
-
Field Summary
Fields Modifier and Type Field and Description static Flags.Flag
ANSWERED
This message has been answered.static Flags.Flag
DELETED
This message is marked deleted.static Flags.Flag
DRAFT
This message is a draft.static Flags.Flag
FLAGGED
This message is flagged.static Flags.Flag
RECENT
This message is recent.static Flags.Flag
SEEN
This message is seen.static Flags.Flag
USER
A special flag that indicates that this folder supports user defined flags.
-
-
-
Field Detail
-
ANSWERED
public static final Flags.Flag ANSWERED
This message has been answered. This flag is set by clients to indicate that this message has been answered to.
-
DELETED
public static final Flags.Flag 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
public static final Flags.Flag DRAFT
This message is a draft. This flag is set by clients to indicate that the message is a draft message.
-
FLAGGED
public static final Flags.Flag FLAGGED
This message is flagged. No semantic is defined for this flag. Clients alter this flag.
-
RECENT
public static final Flags.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
public static final Flags.Flag SEEN
This message is seen. This flag is implicitly set by the implementation when the 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
public static final Flags.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)
.
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/mail/Flags.Flag.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.