aboutsummaryrefslogtreecommitdiff
path: root/src/imap/command.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-06-20 18:09:20 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-06-20 18:09:20 +0200
commitca4c2e7505f28acad688705d45cc5c5dca1799c3 (patch)
tree6820ad27dfdaa5e51e2f296832d75a4a9a6678ae /src/imap/command.rs
parent5dd5ae8bcd6f88703bc483d7f8d5882fefad4e7e (diff)
downloadaerogramme-ca4c2e7505f28acad688705d45cc5c5dca1799c3.tar.gz
aerogramme-ca4c2e7505f28acad688705d45cc5c5dca1799c3.zip
WIP refactor
Diffstat (limited to 'src/imap/command.rs')
-rw-r--r--src/imap/command.rs29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/imap/command.rs b/src/imap/command.rs
deleted file mode 100644
index adf2f90..0000000
--- a/src/imap/command.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-use anyhow::{Error, Result};
-use boitalettres::errors::Error as BalError;
-use boitalettres::proto::{Request, Response};
-use imap_codec::types::core::{AString, Tag};
-use imap_codec::types::fetch_attributes::MacroOrFetchAttributes;
-use imap_codec::types::mailbox::{ListMailbox, Mailbox as MailboxCodec};
-use imap_codec::types::response::{Capability, Code, Data, Response as ImapRes, Status};
-use imap_codec::types::sequence::SequenceSet;
-
-use crate::mailbox::Mailbox;
-use crate::session;
-
-pub struct Command<'a> {
- tag: Tag,
- session: &'a mut session::Instance,
-}
-
-// @FIXME better handle errors, our conversions are bad due to my fork of BàL
-// @FIXME store the IMAP state in the session as an enum.
-impl<'a> Command<'a> {
- pub fn new(tag: Tag, session: &'a mut session::Instance) -> Self {
- Self { tag, session }
- }
-
-
-
-
-
-}