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.
This commit is contained in:
Derek Zhou 2023-01-25 16:31:41 -05:00 committed by GitHub
parent fb8502ae4e
commit 4271fc2fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)};