diff options
Diffstat (limited to 'melib/src/mailbox/backends/maildir.rs')
-rw-r--r-- | melib/src/mailbox/backends/maildir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/mailbox/backends/maildir.rs b/melib/src/mailbox/backends/maildir.rs index 6cf11f36..4f7f0e2c 100644 --- a/melib/src/mailbox/backends/maildir.rs +++ b/melib/src/mailbox/backends/maildir.rs @@ -166,7 +166,7 @@ impl<'a> BackendOp for MaildirOp { let hash_index = self.hash_index.clone(); let mut map = hash_index.lock().unwrap(); let map = map.entry(self.folder_hash).or_default(); - map.remove(&old_hash); + map.insert(old_hash, new_name.clone()); map.insert(new_hash, new_name); Ok(()) } |