From 9ef069923bbf7358caf1f2739befe20adbdca760 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 29 Jun 2022 16:04:11 +0200 Subject: [PATCH] Add call to testing procedure --- src/imap/mailbox_view.rs | 3 +++ src/mail/mailbox.rs | 5 +++++ 2 files changed, 8 insertions(+) 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) -> Result<(Self, Vec)> { + // 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 + } } // ----