/* * SPDX-FileCopyrightText: 2020 Stalwart Labs LLC * * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL */ use tokio::io::{AsyncRead, AsyncWrite}; use crate::core::{Session, StatusResponse}; impl Session { pub async fn handle_logout(&mut self) -> trc::Result> { trc::event!( ManageSieve(trc::ManageSieveEvent::Logout), SpanId = self.session_id, Elapsed = trc::Value::Duration(0) ); Ok(StatusResponse::ok("Stalwart ManageSieve bids you farewell.").into_bytes()) } }