From 4271fc2fb62aae0c624357ac5ce3fa6cb08d8508 Mon Sep 17 00:00:00 2001 From: Derek Zhou Date: Wed, 25 Jan 2023 16:31:41 -0500 Subject: [PATCH] really allow flags to be empty in move command Without this patch, I see the following error: ;; mu> (move :docid 1 :maildir "/.Archive") [2b](:error 32818 :message "invalid flags ''") flags should not default to "", which is not a valid flags string. --- lib/mu-server.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mu-server.cc b/lib/mu-server.cc index b96f50f8..6f202b3f 100644 --- a/lib/mu-server.cc +++ b/lib/mu-server.cc @@ -888,7 +888,7 @@ void Server::Private::move_handler(const Command& cmd) { auto maildir{cmd.string_arg(":maildir").value_or("")}; - const auto flagopt{cmd.string_arg(":flags").value_or("")}; + const auto flagopt{cmd.string_arg(":flags")}; const auto rename{cmd.boolean_arg(":rename")}; const auto no_view{cmd.boolean_arg(":noupdate")}; const auto docids{determine_docids(store_, cmd)};