summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-01-02 17:32:52 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-01-02 18:53:21 +0100
commit40ba9390849bc9a818283542e08da9b02399c704 (patch)
treef327cedab18b2926736e1d36f76dd0d2254c6eab
parenta5335e97790137ca27e5d04d65928400a44f2137 (diff)
downloadimag-40ba9390849bc9a818283542e08da9b02399c704.tar.gz
imag-40ba9390849bc9a818283542e08da9b02399c704.tar.xz
-rw-r--r--lib/domain/libimagmail/src/store.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/domain/libimagmail/src/store.rs b/lib/domain/libimagmail/src/store.rs
index f66fd047..2d1d2626 100644
--- a/lib/domain/libimagmail/src/store.rs
+++ b/lib/domain/libimagmail/src/store.rs
@@ -34,9 +34,11 @@ use libimagentryref::reference::Config;
use libimagentryref::reference::RefFassade;
use libimagentryref::reference::Ref;
use libimagentryref::reference::MutRef;
+use libimagentryutil::isa::Is;
use crate::mid::MessageId;
use crate::mail::Mail;
+use crate::mail::IsMail;
use crate::hasher::MailHasher;
use crate::util::get_message_id_for_mailfile;
@@ -78,6 +80,7 @@ impl<'a> MailStore<'a> for Store {
.get_header_mut()
.insert("mail.message-id", Value::String(message_id))?;
+ entry.set_isflag::<IsMail>()?;
Ok(entry)
}
@@ -126,6 +129,7 @@ impl<'a> MailStore<'a> for Store {
.as_ref_with_hasher_mut::<DefaultHasher>()
.make_ref(p, collection_name, config, false)?;
+ entry.set_isflag::<IsMail>()?;
Ok(entry)
}