Skip to content
docs.
WORKSPACE

Your documentation

Explore the project catalog
Localzet ServerАсинхронный PHP-серверTriangleФреймворк и компонентыMIX IDИдентификация и интеграцииHack APIПубличные API хакатонаACNПроект и компонентыUserlay / UserNetПроект и компонентыAxiomПроект и компонентыМесседжинг через почтуПроект и компоненты✓LWT / JWT / JOSEПроект и компонентыФинансовая аналитика KimaiПроект и компонентыМультипарадигмальная БДПроект и компонентыZorin PlatformПроект и компонентыZorin TrustПроект и компонентыFloraScope / VegwatchПроект и компонентыaegis-qДокументация проектаaevumdbДокументация проектаauditДокументация проектаauto-invest-managerАвтотрейдерcaine-companionДокументация проектаcertbot-cloudflareДокументация проектаClusterLocalzet Server / ClustercmdveilДокументация проектаConsolePHP CLICronБиблиотеки Localzet Serverdata-connectorДокументация проектаdevice-controlDevice Controlenn-projectДокументация проектаEventsБиблиотеки Localzet ServerflowsintДокументация проектаforgeДокументация проектаHttpClientБиблиотеки Localzet ServerinterpreterСобственный языкinvariaДокументация проектаkeynotesДокументация проектаknotrouteKnotroutelaravel-personal-analyticsДокументация проектаlocalzet-osДокументация проектаmeridianДокументация проектаMQTTБиблиотеки Localzet Servernano-kernelСобственная ОСNoterДокументация проектаpersonal-analyticsДокументация проектаProxyБиблиотеки Localzet ServerPSRБиблиотеки Localzet ServerPSR-7Библиотеки Localzet Serverrschs-monitorДокументация проектаsemsealДокументация проектаshardsealДокументация проектаSocketIOБиблиотеки Localzet ServerSOCKS5Библиотеки Localzet Serverstandalone-analyticsДокументация проектаstatic-php-cliДокументация проектаStorageБиблиотеки Localzet ServersutureДокументация проектаtempoweaveДокументация проектаttsСинтез речиTunnelБиблиотеки Localzet Serverui-kitUI KitvesperДокументация проектаWebAnalyzerWebAnalyzerzorin-access-brokerДокументация проектаzorin-authority-brokerДокументация проектаzorin-authority-sdk-phpДокументация проектаzorin-authority-sdk-pythonДокументация проектаzorin-authority-sdk-tsДокументация проектаzorin-client-intelДокументация проектаzorin-device-core-aospДокументация проектаzorin-host-agentДокументация проектаzorin-native-labДокументация проектаzorin-nodeДокументация проектаzorin-opsДокументация проектаdonstu-python-sdkДокументация проектаfloortraceFloortraceserver-rsLocalzet Server / Cluster
Catalog
Documentation/Месседжинг через почту

chatmail-control — API

src/audit.rs

pub struct AuditEvent

src/audit.rs

pub async fn log_event(

src/audit.rs

pub async fn latest(pool: &SqlitePool, limit: i64) -> AppResult<Vec<AuditEvent>>

src/auth.rs

pub struct Admin

src/auth.rs

pub struct Session

src/auth.rs

pub struct LoginRateLimiter

src/auth.rs

pub struct LoginForm

src/auth.rs

pub struct CsrfForm

src/auth.rs

pub struct CurrentAdmin

src/auth.rs

pub async fn require_admin(

src/auth.rs

pub fn hash_password(password: &str) -> AppResult<String>

src/auth.rs

pub fn verify_password(password: &str, hash: &str) -> AppResult<bool>

src/auth.rs

pub async fn upsert_admin(pool: &SqlitePool, username: &str, password: &str) -> AppResult<()>

src/auth.rs

pub async fn authenticate(

src/auth.rs

pub async fn logout(

src/auth.rs

pub fn validate_csrf(current: &CurrentAdmin, token: &str) -> AppResult<()>

src/bans.rs

pub struct Ban

src/bans.rs

pub struct CreateBan<'a>

src/bans.rs

pub struct SetBanActiveByValue<'a>

src/bans.rs

pub async fn list(pool: &SqlitePool, query: Option<&str>) -> AppResult<Vec<Ban>>

src/bans.rs

pub async fn active_values(pool: &SqlitePool) -> AppResult<Vec<String>>

src/bans.rs

pub async fn add(

src/bans.rs

pub async fn set_active(

src/bans.rs

pub async fn delete(

src/bans.rs

pub async fn set_active_for_value(

src/bans.rs

pub async fn ensure_active_address_ban(

src/bans.rs

pub async fn sync_policy_files(pool: &SqlitePool, config: &Config) -> AppResult<()>

src/bans.rs

pub fn render_ban_files(bans: &[Ban]) -> (String, String, String)

src/chatmail.rs

pub struct LogSource

src/chatmail.rs

pub fn users_list_command() -> Vec<String>

src/chatmail.rs

pub fn user_size_command(address: &str) -> Vec<String>

src/chatmail.rs

pub fn user_message_count_command(address: &str) -> Vec<String>

src/chatmail.rs

pub fn user_mailbox_create_command(address: &str, mailbox: &str) -> Vec<String>

src/chatmail.rs

pub fn user_metadata_command(address: &str) -> Vec<String>

src/chatmail.rs

pub fn user_delete_mailbox_command(address: &str) -> Vec<String>

src/chatmail.rs

pub fn user_kick_command(address: &str) -> Vec<String>

src/chatmail.rs

pub fn user_home_command(address: &str) -> Vec<String>

src/chatmail.rs

pub fn user_auth_test_command(address: &str, password: &str) -> Vec<String>

src/chatmail.rs

pub fn user_mailbox_list_command(address: &str) -> Vec<String>

src/chatmail.rs

pub fn user_mailbox_expunge_command(address: &str, mailbox: &str) -> Vec<String>

src/chatmail.rs

pub fn user_quota_recalc_command(address: &str) -> Vec<String>

src/chatmail.rs

pub fn user_force_resync_command(address: &str) -> Vec<String>

src/chatmail.rs

pub fn password_hash_command(password: &str) -> Vec<String>

src/chatmail.rs

pub fn bans_reload_commands() -> Vec<Vec<String>>

src/chatmail.rs

pub fn systemctl_command(action: &str, unit: &str) -> Vec<String>

src/chatmail.rs

pub fn log_source_by_name(name: Option<&str>) -> LogSource

src/config.rs

pub struct Config

src/config.rs

pub struct ServerConfig

src/config.rs

pub struct AuthConfig

src/config.rs

pub struct BansConfig

src/config.rs

pub struct SettingsConfig

src/config.rs

pub struct InvitesConfig

src/config.rs

pub struct HealthConfig

src/db.rs

pub async fn connect(database_url: &str) -> AppResult<SqlitePool>

src/error.rs

pub enum AppError

src/health.rs

pub struct HealthCheck

src/health.rs

pub async fn run_health_checks(shell: &Shell, config: &Config) -> Vec<HealthCheck>

src/invites.rs

pub struct Invite

src/invites.rs

pub fn generate_token() -> String

src/invites.rs

pub async fn list(pool: &SqlitePool) -> AppResult<Vec<Invite>>

src/invites.rs

pub async fn create(

src/invites.rs

pub async fn set_active(

src/invites.rs

pub async fn export_active_tokens(pool: &SqlitePool, config: &Config) -> AppResult<()>

src/logs.rs

pub struct LogLine

src/logs.rs

pub async fn read_logs(

src/logs.rs

pub async fn read_journal_unit(

src/logs.rs

pub async fn read_journal_identifiers(

src/main.rs

pub struct AppState

src/postfix.rs

pub struct PolicySyncResult

src/postfix.rs

pub async fn ensure_ban_policy(shell: &Shell, config: &Config) -> AppResult<PolicySyncResult>

src/request_id.rs

pub async fn request_id_middleware(mut request: Request<Body>, next: Next) -> Response

src/routes/api.rs

pub fn router() -> Router<AppState>

src/routes/auth.rs

pub fn router() -> Router<AppState>

src/routes/bans.rs

pub fn router() -> Router<AppState>

src/routes/dashboard.rs

pub fn router() -> Router<AppState>

src/routes/health.rs

pub fn router() -> Router<AppState>

src/routes/invites.rs

pub fn router() -> Router<AppState>

src/routes/logs.rs

pub fn router() -> Router<AppState>

src/routes/mod.rs

pub fn router() -> Router<crate::AppState>

src/routes/services.rs

pub fn router() -> Router<AppState>

src/routes/settings.rs

pub fn router() -> Router<AppState>

src/routes/users.rs

pub fn router() -> Router<AppState>

src/services.rs

pub struct ServiceStatus

src/services.rs

pub struct DashboardStats

src/services.rs

pub struct ServiceActionResult

src/services.rs

pub async fn collect_dashboard_stats(

src/services.rs

pub async fn run_service_action(

src/settings.rs

pub struct SettingRow

src/settings.rs

pub struct RegistrationSettings

src/settings.rs

pub async fn load(pool: &SqlitePool) -> AppResult<RegistrationSettings>

src/settings.rs

pub async fn save(

src/settings.rs

pub async fn generate_policy_file(

src/shell.rs

pub struct CommandOutput

src/shell.rs

pub struct Shell

src/shell.rs

pub fn substitute_template_args(

src/shell.rs

pub fn command_result_details(output: &CommandOutput) -> Value

src/shell.rs

pub async fn write_text_file(path: &str, content: &str) -> AppResult<()>

src/shell.rs

pub async fn run_reload_commands(

src/users.rs

pub struct UserMailbox

src/users.rs

pub struct ManagedUser

src/users.rs

pub async fn create_user_account(

src/users.rs

pub async fn list_users(shell: &Shell, blocked_values: &[String]) -> Vec<UserMailbox>

src/users.rs

pub async fn load_managed_user(shell: &Shell, address: &str) -> AppResult<ManagedUser>

src/users.rs

pub async fn delete_mailbox(shell: &Shell, address: &str) -> AppResult<CommandOutput>

src/users.rs

pub async fn disable_login(shell: &Shell, address: &str) -> AppResult<String>

src/users.rs

pub async fn enable_login(shell: &Shell, address: &str) -> AppResult<String>

src/users.rs

pub async fn delete_account_lifecycle(shell: &Shell, address: &str) -> AppResult<String>

src/users.rs

pub async fn expunge_mailbox(

src/users.rs

pub async fn quota_recalc(shell: &Shell, address: &str) -> AppResult<CommandOutput>

src/users.rs

pub async fn force_resync(shell: &Shell, address: &str) -> AppResult<CommandOutput>