diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-06-30 13:36:21 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-06-30 13:36:39 +0200 |
commit | 0f0a8d415e45df178778260d3be1b83ab2785675 (patch) | |
tree | d92d0dea55a7dafcbf85377163dfcbb889008a10 /src/imap/command/authenticated.rs | |
parent | 69428eaf257db396ae72007aa78d40406c29407c (diff) | |
download | aerogramme-0f0a8d415e45df178778260d3be1b83ab2785675.tar.gz aerogramme-0f0a8d415e45df178778260d3be1b83ab2785675.zip |
Implement RFC822.TEXT
Diffstat (limited to 'src/imap/command/authenticated.rs')
-rw-r--r-- | src/imap/command/authenticated.rs | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/imap/command/authenticated.rs b/src/imap/command/authenticated.rs index 391b7ff..dfcb52e 100644 --- a/src/imap/command/authenticated.rs +++ b/src/imap/command/authenticated.rs @@ -19,7 +19,10 @@ pub async fn dispatch<'a>(ctx: AuthenticatedContext<'a>) -> Result<(Response, fl match &ctx.req.command.body { CommandBody::Create { mailbox } => ctx.create(mailbox).await, CommandBody::Delete { mailbox } => ctx.delete(mailbox).await, - CommandBody::Rename { mailbox, new_mailbox } => ctx.rename(mailbox, new_mailbox).await, + CommandBody::Rename { + mailbox, + new_mailbox, + } => ctx.rename(mailbox, new_mailbox).await, CommandBody::Lsub { reference, mailbox_wildcard, @@ -28,8 +31,10 @@ pub async fn dispatch<'a>(ctx: AuthenticatedContext<'a>) -> Result<(Response, fl reference, mailbox_wildcard, } => ctx.list(reference, mailbox_wildcard).await, - CommandBody::Status { mailbox, attributes } => - ctx.status(mailbox, attributes).await, + CommandBody::Status { + mailbox, + attributes, + } => ctx.status(mailbox, attributes).await, CommandBody::Select { mailbox } => ctx.select(mailbox).await, CommandBody::Examine { mailbox } => ctx.examine(mailbox).await, _ => { @@ -53,7 +58,11 @@ impl<'a> AuthenticatedContext<'a> { Ok((Response::bad("Not implemented")?, flow::Transition::None)) } - async fn rename(self, mailbox: &MailboxCodec, new_mailbox: &MailboxCodec) -> Result<(Response, flow::Transition)> { + async fn rename( + self, + mailbox: &MailboxCodec, + new_mailbox: &MailboxCodec, + ) -> Result<(Response, flow::Transition)> { Ok((Response::bad("Not implemented")?, flow::Transition::None)) } |