diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2023-07-31 18:58:14 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2023-08-04 00:09:02 +0300 |
| commit | 924bb2145e01d7e07da2babb34776d252a70bc80 (patch) | |
| tree | 007103e2ebfa0f591cf0a56b50543ec6d8237444 /mu/mu-cmd-server.cc | |
| parent | 0ace413f801fddc6ae7687a882b124b7ce6555fc (diff) | |
mu-server: implement temp-file optimization
It can be faster to feed big mu -> mu4e data, such as contacts are
message headers through a temp-file instead directly though stdout;
implement this, and add the server parameter --allow-temp-file.
Implement this the "contacts" and "find" commands.
Diffstat (limited to 'mu/mu-cmd-server.cc')
| -rw-r--r-- | mu/mu-cmd-server.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mu/mu-cmd-server.cc b/mu/mu-cmd-server.cc index 978a322..6a27b78 100644 --- a/mu/mu-cmd-server.cc +++ b/mu/mu-cmd-server.cc @@ -117,7 +117,10 @@ Mu::mu_cmd_server(const Mu::Options& opts) try { if (!store) return Err(store.error()); - Server server{*store, output_sexp_stdout}; + Server::Options sopts{}; + sopts.allow_temp_file = opts.server.allow_temp_file; + + Server server{*store, sopts, output_sexp_stdout}; mu_message("created server with store @ {}; maildir @ {}; debug-mode {};" "readline: {}", store->path(), store->root_maildir(), |
