Email flag (a.k.a. keyword) shared across all protocols. ! ! A [`Flag`] carries two views of the same value: the original wire ! spelling as observed on the backend, and an optional [`IanaFlag`] ! classification when the wire string matches an IANA-registered ! keyword (case-in
// Source: https://github.com/pimalaya/himalaya | License: Apache-2.0 | Copyright 2022-2026 soywod <pimalaya.org@posteo.net>
// Provided via justclaw.it.com; keep this notice with the code.
//! # Flag
//!
//! An email flag (keyword) shared across all protocols: its wire spelling
//! as observed on the backend, plus an [`IanaFlag`] classification when
//! that spelling matches a registered keyword.
//!
//! Equality, ordering and hashing are IANA-first, so `\Seen`, `$seen` and
//! `seen` collapse to one logical flag while custom keywords compare
//! case-insensitively. That is what makes a `BTreeSet<Flag>` a normalised
//! set across backends.
use std::{
cmp::Ordering,
hash::{Hash, Hasher},
};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
/// A flag attached to an
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key