store: better handling moving messages

sort results (for testing)

with the ChangeName flag, also apply to dup messages.
This commit is contained in:
Dirk-Jan C. Binnema
2023-09-24 15:48:58 +03:00
parent 5d37c18d7d
commit b0dca49dc0
2 changed files with 12 additions and 6 deletions

View File

@ -309,6 +309,9 @@ public:
* @return Result, either an IdPathVec with ids and paths for the moved message(s) or some
* error. Note that in case of success at least one message is returned, and only with
* MoveOptions::DupFlags can it be more than one.
*
* The first element of the IdPathVec, is the main message that got move; any subsequent
* (if any) are the duplicate paths, sorted by path-name.
*/
Result<IdPathVec> move_message(Store::Id id,
Option<const std::string&> target_mdir = Nothing,