aboutsummaryrefslogtreecommitdiff
path: root/src/imap
diff options
context:
space:
mode:
Diffstat (limited to 'src/imap')
-rw-r--r--src/imap/command/anonymous.rs4
-rw-r--r--src/imap/command/authenticated.rs2
-rw-r--r--src/imap/command/selected.rs2
-rw-r--r--src/imap/flow.rs1
4 files changed, 4 insertions, 5 deletions
diff --git a/src/imap/command/anonymous.rs b/src/imap/command/anonymous.rs
index 5f982ba..8cd986c 100644
--- a/src/imap/command/anonymous.rs
+++ b/src/imap/command/anonymous.rs
@@ -1,12 +1,12 @@
use anyhow::{Error, Result};
use boitalettres::proto::{res::body::Data as Body, Request, Response};
use imap_codec::types::command::CommandBody;
-use imap_codec::types::core::{AString};
+use imap_codec::types::core::AString;
use imap_codec::types::response::{Capability, Data, Status};
use crate::imap::flow;
-use crate::mail::user::User;
use crate::login::ArcLoginProvider;
+use crate::mail::user::User;
//--- dispatching
diff --git a/src/imap/command/authenticated.rs b/src/imap/command/authenticated.rs
index b79865f..47df5be 100644
--- a/src/imap/command/authenticated.rs
+++ b/src/imap/command/authenticated.rs
@@ -96,7 +96,7 @@ impl<'a> AuthenticatedContext<'a> {
async fn select(self, mailbox: &MailboxCodec) -> Result<(Response, flow::Transition)> {
let name = String::try_from(mailbox.clone())?;
- let mut mb = self.user.open_mailbox(name.clone())?;
+ let mut mb = self.user.open_mailbox(name)?;
tracing::info!(username=%self.user.username, mailbox=%name, "mailbox.selected");
let sum = mb.summary().await?;
diff --git a/src/imap/command/selected.rs b/src/imap/command/selected.rs
index bd46bd5..b1bba23 100644
--- a/src/imap/command/selected.rs
+++ b/src/imap/command/selected.rs
@@ -1,4 +1,4 @@
-use anyhow::{Result};
+use anyhow::Result;
use boitalettres::proto::Request;
use boitalettres::proto::Response;
use imap_codec::types::command::CommandBody;
diff --git a/src/imap/flow.rs b/src/imap/flow.rs
index 369bee6..0fe6f92 100644
--- a/src/imap/flow.rs
+++ b/src/imap/flow.rs
@@ -4,7 +4,6 @@ use std::fmt;
use crate::mail::mailbox::Mailbox;
use crate::mail::user::User;
-
#[derive(Debug)]
pub enum Error {
ForbiddenTransition,