summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-02-22 11:06:05 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-02-22 11:06:05 +0100
commit251ff4580e5af48ebc9ce42dc0d5a23377f7078f (patch)
tree0b9d84176e53855a19768aaddec6fb6df62828ff
parent9e96197b075597d244408a45331e43a0c553e549 (diff)
TMP: Drop original Entry object before passing loaded root mail
-rw-r--r--lib/domain/libimagmail/src/store.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/domain/libimagmail/src/store.rs b/lib/domain/libimagmail/src/store.rs
index 8f6f2cd8..7a01dd1d 100644
--- a/lib/domain/libimagmail/src/store.rs
+++ b/lib/domain/libimagmail/src/store.rs
@@ -123,11 +123,12 @@ impl<'a> MailStoreWithConnection<'a> {
.ok_or_else(|| format_err!("Cannot find root message: {}", root_id))?;
trace!("Getting mail from connection: {:?}", root);
- let root = root.load(self.connection())?
+ let loaded_root = root.load(self.connection())?
.ok_or_else(|| format_err!("Cannot load root message: {}", root_id))?;
- trace!("Filling mailtree from: {:?}, {:?}", self, root);
- Mailtree::fill_from(self, root)
+ drop(root);
+ trace!("Filling mailtree from: {:?}, {:?}", self, loaded_root);
+ Mailtree::fill_from(self, loaded_root)
}
fn create_entry_for_id(&self, id: Cow<str>) -> Result<FileLockEntry<'a>> {