diff options
Diffstat (limited to 'src/imap/command')
-rw-r--r-- | src/imap/command/authenticated.rs | 8 | ||||
-rw-r--r-- | src/imap/command/examined.rs | 6 | ||||
-rw-r--r-- | src/imap/command/selected.rs | 18 |
3 files changed, 16 insertions, 16 deletions
diff --git a/src/imap/command/authenticated.rs b/src/imap/command/authenticated.rs index f46dfb4..e7198ee 100644 --- a/src/imap/command/authenticated.rs +++ b/src/imap/command/authenticated.rs @@ -165,21 +165,21 @@ impl<'a> AuthenticatedContext<'a> { async fn status( self, mailbox: &MailboxCodec, - attributes: &[StatusAttribute], + _attributes: &[StatusAttribute], ) -> Result<(Response, flow::Transition)> { - let name = String::try_from(mailbox.clone())?; + let _name = String::try_from(mailbox.clone())?; Ok((Response::bad("Not implemented")?, flow::Transition::None)) } async fn subscribe(self, mailbox: &MailboxCodec) -> Result<(Response, flow::Transition)> { - let name = String::try_from(mailbox.clone())?; + let _name = String::try_from(mailbox.clone())?; Ok((Response::bad("Not implemented")?, flow::Transition::None)) } async fn unsubscribe(self, mailbox: &MailboxCodec) -> Result<(Response, flow::Transition)> { - let name = String::try_from(mailbox.clone())?; + let _name = String::try_from(mailbox.clone())?; Ok(( Response::bad("Aerogramme does not support unsubscribing from a mailbox")?, diff --git a/src/imap/command/examined.rs b/src/imap/command/examined.rs index 91ad950..9dba680 100644 --- a/src/imap/command/examined.rs +++ b/src/imap/command/examined.rs @@ -71,9 +71,9 @@ impl<'a> ExaminedContext<'a> { pub async fn search( self, - charset: &Option<Charset>, - criteria: &SearchKey, - uid: &bool, + _charset: &Option<Charset>, + _criteria: &SearchKey, + _uid: &bool, ) -> Result<(Response, flow::Transition)> { Ok((Response::bad("Not implemented")?, flow::Transition::None)) } diff --git a/src/imap/command/selected.rs b/src/imap/command/selected.rs index bb78cbd..848302c 100644 --- a/src/imap/command/selected.rs +++ b/src/imap/command/selected.rs @@ -4,7 +4,7 @@ use anyhow::Result; use boitalettres::proto::Request; use boitalettres::proto::Response; use imap_codec::types::command::CommandBody; -use imap_codec::types::fetch_attributes::MacroOrFetchAttributes; + use imap_codec::types::flag::{Flag, StoreResponse, StoreType}; use imap_codec::types::mailbox::Mailbox as MailboxCodec; @@ -67,20 +67,20 @@ impl<'a> SelectedContext<'a> { async fn store( self, - sequence_set: &SequenceSet, - kind: &StoreType, - response: &StoreResponse, - flags: &[Flag], - uid: &bool, + _sequence_set: &SequenceSet, + _kind: &StoreType, + _response: &StoreResponse, + _flags: &[Flag], + _uid: &bool, ) -> Result<(Response, flow::Transition)> { Ok((Response::bad("Not implemented")?, flow::Transition::None)) } async fn copy( self, - sequence_set: &SequenceSet, - mailbox: &MailboxCodec, - uid: &bool, + _sequence_set: &SequenceSet, + _mailbox: &MailboxCodec, + _uid: &bool, ) -> Result<(Response, flow::Transition)> { Ok((Response::bad("Not implemented")?, flow::Transition::None)) } |