summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-01-03 18:47:53 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-01-03 18:48:27 +0100
commit93d3bda837122bfc7a05ec20690bac2b49fbaf15 (patch)
treefb03b96eec6fb71fb4eb07dd4807700cf015e084
parent74d19e1a4bd066d124f0e5c8649c0d699c6bb76a (diff)
downloadimag-93d3bda837122bfc7a05ec20690bac2b49fbaf15.zip
imag-93d3bda837122bfc7a05ec20690bac2b49fbaf15.tar.gz
Fix: Use module path when getting mail instead of using plain MessageId object in String representationHEADmaster
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--lib/domain/libimagmail/src/store.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/domain/libimagmail/src/store.rs b/lib/domain/libimagmail/src/store.rs
index 88f49df..8b0200e 100644
--- a/lib/domain/libimagmail/src/store.rs
+++ b/lib/domain/libimagmail/src/store.rs
@@ -27,7 +27,6 @@ use toml_query::insert::TomlValueInsertExt;
use libimagstore::store::FileLockEntry;
use libimagstore::store::Store;
-use libimagstore::storeid::StoreId;
use libimagstore::iter::Entries;
use libimagentryref::hasher::default::DefaultHasher;
use libimagentryref::reference::Config;
@@ -137,7 +136,8 @@ impl<'a> MailStore<'a> for Store {
fn get_mail(&'a self, mid: MessageId) -> Result<Option<FileLockEntry<'a>>> {
let mid_s : String = mid.into();
- self.get(StoreId::new(PathBuf::from(mid_s))?)
+ let sid = crate::module_path::new_id(PathBuf::from(mid_s))?;
+ self.get(sid)
.and_then(|oe| match oe {
Some(e) => if e.is_mail()? {
Ok(Some(e))