summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-01-02 14:32:19 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-01-02 14:51:57 +0100
commitb335311caa96c32f2a6578661f01b1643ecffa2e (patch)
treeca7e71bf1e4827114564c6dae7282d68bcdd181f /bin
parent1c8c02c904abd913ed7621fc43eecd57c4b7aeec (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.rs2
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)
}