Skip to main content

3. Flag Color Keywords

3. Flag Color Keywords

3.1. Definition of the $MailFlagBit_ Message Keywords

IMAP defines the \Flagged system flag to mark a message as urgent or needing special attention. The $MailFlagBit0, $MailFlagBit1, and $MailFlagBit2 keywords form a three-bit pattern that lets a flagged message carry one of seven flag colors.

Bit 0Bit 1Bit 2Color
000red
100orange
010yellow
110green
001blue
101purple
011gray

The 111 combination is not assigned a color. These keywords MUST be ignored if the \Flagged system flag is not set. A client that understands these keywords MUST clear all three when the user clears \Flagged, and MUST NOT set them unless \Flagged is already set or is being set. Servers MAY clear the keywords when \Flagged is cleared. Clients SHOULD provide alternatives for users who cannot perceive colors, such as shapes, patterns, labels, or audio cues.

3.2. Implementation Notes

See the requirements above for client and server behavior when \Flagged or the flag color keywords are changed.