Implements Gmail IMAP get command, fetching and displaying IMAP settings via Gmail API.
// 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.
//! # Gmail IMAP get
//!
//! The `gmail settings imap get` command, `users.settings.getImap`.
use std::fmt;
use anyhow::Result;
use clap::Parser;
use io_gmail::v1::rest::settings::get_imap::GmailImapGet;
use pimalaya_cli::printer::Printer;
use schemars::JsonSchema;
use serde::Serialize;
use crate::gmail::{
client::GmailClient,
settings::convert::{expunge_behavior_wire, yes_no},
};
/// Get the Gmail IMAP access settings.
#[derive(Debug, Parser)]
pub struct GmailSettingsImapGetCommand;
impl GmailSettingsImapGetCommand {
/// Fetches the IMAP settings and tables them.
pub fn execute(sel
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key