From cbcc339d50fc2c30e51776c3a60818190ffb4f23 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 7 Jun 2022 13:46:13 +0200 Subject: Start implementing other endpoints --- src/service.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/service.rs') diff --git a/src/service.rs b/src/service.rs index 4d4c288..a2fca4d 100644 --- a/src/service.rs +++ b/src/service.rs @@ -12,6 +12,7 @@ use tower::Service; use crate::command; use crate::login::Credentials; use crate::mailstore::Mailstore; +use crate::mailbox::Mailbox; pub struct Instance { pub mailstore: Arc, @@ -39,6 +40,7 @@ impl<'a> Service<&'a AddrStream> for Instance { pub struct Session { pub creds: Option, + pub selected: Option, } pub struct Connection { @@ -47,7 +49,7 @@ pub struct Connection { } impl Connection { pub fn new(mailstore: Arc) -> Self { - Self { mailstore, session: Arc::new(Mutex::new(Session { creds: None })) } + Self { mailstore, session: Arc::new(Mutex::new(Session { creds: None, selected: None, })) } } } impl Service for Connection { -- cgit v1.2.3