diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-01-02 14:32:19 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-01-02 14:51:57 +0100 |
commit | b335311caa96c32f2a6578661f01b1643ecffa2e (patch) | |
tree | ca7e71bf1e4827114564c6dae7282d68bcdd181f /bin | |
parent | 1c8c02c904abd913ed7621fc43eecd57c4b7aeec (diff) |
Store::retrieve_mail_from_path() should have a flag to force making a ref out of the entry
Because if the entry already exists, we might override the ref anyways.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/domain/imag-mail/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/domain/imag-mail/src/lib.rs b/bin/domain/imag-mail/src/lib.rs index ed931451..d3cb8c41 100644 --- a/bin/domain/imag-mail/src/lib.rs +++ b/bin/domain/imag-mail/src/lib.rs @@ -129,7 +129,7 @@ fn import_mail(rt: &Runtime) -> Result<()> { .map(PathBuf::from) .map(|path| { if scmd.is_present("ignore-existing-ids") { - store.retrieve_mail_from_path(path, &collection_name, &refconfig) + store.retrieve_mail_from_path(path, &collection_name, &refconfig, true) } else { store.create_mail_from_path(path, &collection_name, &refconfig) } |