aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/imap/mailbox_view.rs3
-rw-r--r--src/mail/mailbox.rs5
2 files changed, 8 insertions, 0 deletions
diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs
index d03538f..ee36911 100644
--- a/src/imap/mailbox_view.rs
+++ b/src/imap/mailbox_view.rs
@@ -37,6 +37,9 @@ impl MailboxView {
/// has a satisfactory summary of the current mailbox's state.
/// These are the messages that are sent in response to a SELECT command.
pub async fn new(mailbox: Arc<Mailbox>) -> Result<(Self, Vec<Body>)> {
+ // TODO THIS IS JUST A TEST REMOVE LATER
+ mailbox.test().await?;
+
let state = mailbox.current_uid_index().await;
let new_view = Self {
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index 2e890d9..ca672da 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -71,6 +71,11 @@ impl Mailbox {
pub async fn fetch(&self) -> Result<()> {
unimplemented!()
}
+
+ /// Test procedure TODO WILL REMOVE THIS
+ pub async fn test(&self) -> Result<()> {
+ self.mbox.write().await.test().await
+ }
}
// ----