summaryrefslogtreecommitdiff
path: root/lib/mu-server.hh
AgeCommit message (Collapse)Author
2025-08-24mu-server: implement exposing the socket-pathDirk-Jan C. Binnema
Add the scm-socket-path to the ping-properties we expose for mu4e.
2023-09-11lib: hide some code from coverage checkingDirk-Jan C. Binnema
Parts that are not easy / useful to unit-test
2023-08-04mu-server: use strings, not sexps object (optimization)Dirk-Jan C. Binnema
When passing messages to mu, often we got a (parsed from string) message-sexp from the message document; then appended some more properties ("build_message_sexp"). Instead, we can do it in terms of the strings; this is _a little_ inelegant, but also much faster; compare: (base) [mu4e] Found 500 matching messages; 0 hidden; search: 1298.0 ms (2.60 ms/msg); render: 642.1 ms (1.28 ms/msg) (with temp-file optimization (earlier commit) [mu4e] Found 500 matching messages; 0 hidden; search: 1152.7 ms (2.31 ms/msg); render: 270.1 ms (0.54 ms/msg) (with temp file optimize _and_ the string opt (this commit) [mu4e] Found 500 matching messages; 0 hidden; search: 266.0 ms (0.53 ms/msg); render: 199.7 ms (0.40 ms/msg)
2023-08-04mu-server: implement temp-file optimizationDirk-Jan C. Binnema
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.
2023-07-10store/server: centralize docids-for-msgidDirk-Jan C. Binnema
No need for two near-identical impls Remove some dead declarations.
2022-11-07server: rework for updated Sexp/CommandHandlerDirk-Jan C. Binnema
Rework for the new APIs.
2022-05-06sexp: allow for some prettified string outputDirk-Jan C. Binnema
Allow for adding newlines between list items
2022-02-03server: support flushing the outputDirk-Jan C. Binnema
So we can get some progress output
2021-10-20clang-format: update c/cc coding styleDirk-Jan C. Binnema
Update all cc code using .clang-format; please do so as well for future PRs etc.; emacs has a handy 'clang-format' mode to make this automatic. For comparing old changes with git blame, we can disregard this one using --ignore-rev (see https://www.moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame )
2020-10-31mu/lib: refactor mu(-cmd)-server codeDirk-Jan C. Binnema
Split off the parsing/handling code from the mu command server into mu-server, and only leave the external interface (the mu4e repl) in mu-cmd-server.