aboutsummaryrefslogtreecommitdiff
path: root/src/mail/mailbox.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-05 15:36:40 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-05 15:36:40 +0100
commit335750a29a83edba9bce2fb7e1452001e4962d1f (patch)
treebea1e1f767cbd662e7a7f9b674a7ebeae195cd0a /src/mail/mailbox.rs
parentd3c156a087f3c767fc0d2376abd7c1d304161d47 (diff)
downloadaerogramme-335750a29a83edba9bce2fb7e1452001e4962d1f.tar.gz
aerogramme-335750a29a83edba9bce2fb7e1452001e4962d1f.zip
MOVE command is optimized
Diffstat (limited to 'src/mail/mailbox.rs')
-rw-r--r--src/mail/mailbox.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index e424ba3..b011110 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -149,7 +149,6 @@ impl Mailbox {
/// Move an email from an other Mailbox to this mailbox
/// (use this when possible, as it allows for a certain number of storage optimizations)
- #[allow(dead_code)]
pub async fn move_from(&self, from: &Mailbox, uuid: UniqueIdent) -> Result<()> {
if self.id == from.id {
bail!("Cannot copy move same mailbox");
@@ -403,8 +402,6 @@ impl MailboxInternal {
Ok(new_id)
}
- #[allow(dead_code)]
- // 2023-05-15 will probably be used later
async fn move_from(&mut self, from: &mut MailboxInternal, id: UniqueIdent) -> Result<()> {
self.copy_internal(from, id, id).await?;
from.delete(id).await?;