aboutsummaryrefslogtreecommitdiff
path: root/src/imap/command/anonymous.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-29 13:16:58 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-29 13:16:58 +0200
commit1bc109df72a3d785211a128b3f28746232258924 (patch)
tree7f9698fb3b61aa506d0a1d8e0835db23b882e23a /src/imap/command/anonymous.rs
parent3cf91429c7eb675639fbcbf006e04d790645cf77 (diff)
downloadaerogramme-1bc109df72a3d785211a128b3f28746232258924.tar.gz
aerogramme-1bc109df72a3d785211a128b3f28746232258924.zip
Refactoring
Diffstat (limited to 'src/imap/command/anonymous.rs')
-rw-r--r--src/imap/command/anonymous.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imap/command/anonymous.rs b/src/imap/command/anonymous.rs
index 7e72458..5f982ba 100644
--- a/src/imap/command/anonymous.rs
+++ b/src/imap/command/anonymous.rs
@@ -5,6 +5,7 @@ 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;
//--- dispatching
@@ -68,10 +69,9 @@ impl<'a> AnonymousContext<'a> {
Ok(c) => c,
};
- let user = flow::User {
- creds,
- name: u.clone(),
- };
+ let s3_client = creds.s3_client();
+ let k2v_client = creds.k2v_client();
+ let user = User::new(u.clone(), creds)?;
tracing::info!(username=%u, "connected");
Ok((