maildir: improve testing coverage

Remove some dead/unused code. Update docs. Add test cases.
This commit is contained in:
Dirk-Jan C. Binnema
2022-06-29 22:19:26 +03:00
parent fc25bb2866
commit 97459beed9
4 changed files with 91 additions and 75 deletions

View File

@ -539,8 +539,7 @@ Store::move_message(Store::Id id,
return Err(target_path.error());
/* 2. let's move it */
if (const auto res = maildir_move_message(
msg->path(), target_path.value(), true/*ignore dups*/); !res)
if (const auto res = maildir_move_message(msg->path(), target_path.value()); !res)
return Err(res.error());
/* 3. file move worked, now update the message with the new info.*/