diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-05 17:46:16 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-05 17:46:16 +0100 |
commit | adf4d33f226a745330a3bb802fe9b96f263a0895 (patch) | |
tree | 28ba9871f00752998437c511f093b60c1b310bab /src/mail/mailbox.rs | |
parent | 335750a29a83edba9bce2fb7e1452001e4962d1f (diff) | |
download | aerogramme-adf4d33f226a745330a3bb802fe9b96f263a0895.tar.gz aerogramme-adf4d33f226a745330a3bb802fe9b96f263a0895.zip |
added some utility structures
Diffstat (limited to 'src/mail/mailbox.rs')
-rw-r--r-- | src/mail/mailbox.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs index b011110..306fd7d 100644 --- a/src/mail/mailbox.rs +++ b/src/mail/mailbox.rs @@ -82,6 +82,10 @@ impl Mailbox { self.mbox.read().await.fetch_full(id, message_key).await } + async fn frozen(self: &std::sync::Arc<Self>) -> super::snapshot::FrozenMailbox { + super::snapshot::FrozenMailbox::new(self.clone()).await + } + // ---- Functions for changing the mailbox ---- /// Add flags to message |