mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 15:42:10 +03:00
31 lines
979 B
Rust
31 lines
979 B
Rust
//! # IMAP capabilities
|
|
//!
|
|
//! IMAP server capabilities are determined with a `CAPABILITY` command.
|
|
use std::collections::HashMap;
|
|
|
|
#[derive(Debug)]
|
|
pub(crate) struct Capabilities {
|
|
/// True if the server has IDLE capability as defined in
|
|
/// <https://tools.ietf.org/html/rfc2177>
|
|
pub can_idle: bool,
|
|
|
|
/// True if the server has MOVE capability as defined in
|
|
/// <https://tools.ietf.org/html/rfc6851>
|
|
pub can_move: bool,
|
|
|
|
/// True if the server has QUOTA capability as defined in
|
|
/// <https://tools.ietf.org/html/rfc2087>
|
|
pub can_check_quota: bool,
|
|
|
|
/// True if the server has CONDSTORE capability as defined in
|
|
/// <https://tools.ietf.org/html/rfc7162>
|
|
pub can_condstore: bool,
|
|
|
|
/// True if the server has METADATA capability as defined in
|
|
/// <https://tools.ietf.org/html/rfc5464>
|
|
pub can_metadata: bool,
|
|
|
|
/// Server ID if the server supports ID capability.
|
|
pub server_id: Option<HashMap<String, String>>,
|
|
}
|