mirror of
https://github.com/djcb/mu.git
synced 2024-07-01 08:11:06 +02:00
server: support doccount data request
So we can update doccount in mu4e after indexing
This commit is contained in:
parent
697d6b6b4f
commit
b4ff8d62af
|
@ -586,7 +586,9 @@ Server::Private::data_handler(const Command& cmd)
|
|||
{
|
||||
const auto request_type{unwrap(cmd.symbol_arg(":kind"))};
|
||||
|
||||
if (request_type == "maildirs") {
|
||||
if (request_type == "doccount") {
|
||||
output(mu_format("(:doccount {})", store().size()));
|
||||
} else if (request_type == "maildirs") {
|
||||
auto&& out{make_output_stream()};
|
||||
mu_print(out, "(");
|
||||
for (auto&& mdir: store().maildirs())
|
||||
|
|
Loading…
Reference in New Issue
Block a user