Dirk-Jan C. Binnema
a0d60d23b0
compat: include sys/wait.h where needed
...
netbsd needs this explicitly, other systems let us get away without it.
2024-04-21 22:08:10 +03:00
Dirk-Jan C. Binnema
2f5602b938
unit tests: improve
...
and add a new one for the indexer
2023-09-12 21:38:57 +03:00
Dirk-Jan C. Binnema
8287b9802e
lib: replace mu-bookmarks with mu-query-macros
...
And add some unit tests.
2023-09-11 23:54:56 +03:00
Dirk-Jan C. Binnema
f6122ecc9e
mu-find: add --analyze option
...
For analyzing queries with the new query-parser.
2023-09-09 11:59:59 +03:00
Dirk-Jan C. Binnema
d7f8a64b20
mu: modernize command-line unit tests
2023-08-27 11:07:55 +03:00
Dirk-Jan C. Binnema
4945e699c8
lib/mu: use fmt-based time/date formatting
...
For a small speedup
2023-08-06 16:19:43 +03:00
Dirk-Jan C. Binnema
23ba61a650
mu-find: internal cleanups / modernization
...
use fmt and Result-based APIs.
2023-07-25 21:26:01 +03:00
Dirk-Jan C. Binnema
4920b56671
update to use fmt-based apis
...
Not complete, but a first big stab converting users of Mu::Error and
various g_warning & friends, format to the new libfmt-based APIs.
2023-07-05 23:10:13 +03:00
Dirk-Jan C. Binnema
e43452fa18
test: don't "uniqify" link names during test
2023-04-09 11:02:58 +03:00
Dirk-Jan C. Binnema
6979a66630
utils: get rid of mu-util.[ch]
...
It was getting old...
Remove the unused parts, refactor the few parts still in use.
2023-01-14 20:02:05 +02:00
Dirk-Jan C. Binnema
36f6e387ae
mu: implement new command-line parser
...
Implement a new command-line parser, based on CLI11.
It's a bit more C++'ish, and allows for a lot of fancy things... some of
which we have implemented here.
Update the various commands to use the new Options struct
Remove the old help strings; instead e.g. `mu help view` opens the
manpage.
Integrate the guile scripts more tightly.
2022-11-17 11:00:06 +02:00
Dirk-Jan C. Binnema
08ffba42b9
mu/cmd: update for new sexp API
...
Makes the code a bit cleaner.
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema
1c57d91e26
mu-find: don't show deleted messages
...
Filter out messages for which there is no corresponding file.
Fixes #2306 .
2022-07-19 21:54:26 +03:00
Dirk-Jan C. Binnema
9987ceb7a7
cmd-find: fix link generation
...
And some minor cleanups.
2022-06-29 07:50:16 +03:00
Dirk-Jan C. Binnema
cea3167f3e
lib: remove some dead code (mu-str/utils)
...
Remove unused library code; recycle some electrons.
2022-05-19 23:38:49 +03:00
Dirk-Jan C. Binnema
dc69505580
mu-maildir: No need for namespaced function names
...
Mu::mu_maildir_... -> Mu::maildir_...
2022-05-09 22:25:28 +03:00
Dirk-Jan C. Binnema
6126d7ee62
store: ensure updates update message sexp too
...
And turn all "add" into "replace" so old messages get removed.
Update tests too.
2022-05-05 01:40:17 +03:00
Dirk-Jan C. Binnema
9dd1aaeef5
cmd: update commands and tests for Message
2022-04-30 10:40:45 +03:00
Dirk-Jan C. Binnema
8db299ea05
commands: Updated 'find' and 'index' to use Mu::Message
2022-04-30 10:40:45 +03:00
Dirk-Jan C. Binnema
478ef67fc6
flags: rename flags_to_string -> to_string
...
For consistency.
2022-04-16 16:20:38 +03:00
Dirk-Jan C. Binnema
f7c84006d7
many: update for lib/message updates
...
Adapt to the new names / directory. Big commit, but mostly just very boring renaming.
2022-03-26 17:19:10 +02:00
Dirk-Jan C. Binnema
65afb207d7
cmd-find: use mu-message-fields
2022-03-07 06:50:18 +02:00
Dirk-Jan C. Binnema
af87cde217
utils/mu-date: remove
...
Remove mu-date.[ch] and convert its last users to use time_to_string instead.
2022-02-22 23:07:29 +02:00
Dirk-Jan C. Binnema
c0da564bba
lib: fix clang compatibility / warnings
2022-02-18 10:49:56 +02:00
Dirk-Jan C. Binnema
4eabf1a64a
*: update for for mu-maildir changes
...
Update the dependencies.
2022-02-17 23:48:59 +02:00
Dirk-Jan C. Binnema
23fc8bdba8
update code for Mu::MessagePriority
...
Update dependent code
2022-02-14 11:12:26 +02:00
Dirk-Jan C. Binnema
ebc9b88f80
store/query: update for new store/query api
...
Update to the new API.
2022-01-30 14:52:41 +02:00
Dirk-Jan C. Binnema
3dd721d5a3
clang-format: update c/cc coding style
...
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 )
2021-10-20 12:26:16 +03:00
Dirk-Jan C. Binnema
91cf2dcec7
mu-find: unbreak json output
...
Fixes : #2149
Needs backporting to 1.6.x
2021-09-30 15:41:38 +03:00
Dirk-Jan C. Binnema
9020389a56
mu-cmd-find: Fix links ouput
...
Special case the footer/header for the links output. Small code
cleanups.
Fix error in docs.
Fixes : #2035 .
2021-06-11 10:40:01 +03:00
Dirk-Jan C. Binnema
950883ad39
cmd-find: show thread-paths with --debug
...
For... debugging.
2021-02-15 18:41:28 +02:00
Dirk-Jan C. Binnema
72fdfec3eb
lib: clean up mu_msg_to_sexp API
...
move out the QueryMatch
2021-01-29 22:39:21 +02:00
Dirk-Jan C. Binnema
c8ab816b37
mu-find: don't pre/post none-message
...
This gives a runtime-error. Since some tools (like mu4e-alert) merge
stderr & stdout, they get confused.
Fixes : #1914 .
2021-01-27 18:58:00 +02:00
Dirk-Jan C. Binnema
9260e4cbe2
mu: avoid some compiler warnings
2021-01-24 14:43:38 +02:00
Dirk-Jan C. Binnema
01ced9a356
mu: Update for new querying APIs
2021-01-22 22:51:33 +02:00
Dirk-Jan C. Binnema
a1d1619bda
use c++ for some more sources
...
Do a (superficial) port to c++ of some of the c sources. Update
deps. Fix a few compiler warnings.
2020-11-07 14:11:59 +02:00
Dirk-Jan C. Binnema
c7a874b8d6
lib: convert threader/container to c++
...
Did change the code much, but it's now compiled as c++
2020-11-07 11:43:11 +02:00
Dirk-Jan C. Binnema
2804087b3a
mu: use updated Query API
2020-11-04 23:35:30 +02:00
Dirk-Jan C. Binnema
d2aa1f91b0
mu: support json output directly
...
Allow for dumping json directly from the Sexp structures, so we don't
need any external libs (i.e. json-glib) anymore.
2020-10-26 18:39:56 +02:00
Dirk-Jan C. Binnema
d1b0938187
mu-cmd-cfind: include <array>
2020-08-15 11:04:36 +03:00
Dirk-Jan C. Binnema
5402e00fc5
mu-cmd-find: don't mark rainbow constexpr
...
clang/libc++ don't allow constexpr:
```
mu-cmd-find.cc:498:40: error: constexpr variable cannot have non-literal type 'const std::array<Color, 6>' (aka 'const array<Mu::MaybeAnsi::Color, 6>')
constexpr std::array<Color, 6> rainbow = {
```
So let's make it mere `const` instead.
2020-08-15 10:51:04 +03:00
Dirk-Jan C. Binnema
148c906d8a
fix compilation error / clang warnings
2020-07-25 11:26:08 +03:00
Dirk-Jan C. Binnema
092084b987
cmd: Update find, server for Sexp changes
2020-07-13 21:43:59 +03:00
Dirk-Jan C. Binnema
4e6bd7dfdf
lib/index: Implement new indexer
...
Implement a new message indexer consisting of a single-threaded scanner
and a multi-threaded indexer.
This allows for a number of optimizations as well as background
indexing, though this initial version should be behave similar to the
old indexer.
2020-06-27 17:07:00 +03:00
Dirk-Jan C. Binnema
68533cee0d
mu: use g_printerr for errors, instead of g_warning
...
With the new logging setup, we need g_printerr
2020-06-13 16:56:41 +03:00
Dirk-Jan C. Binnema
a9fab4abcc
mu: convert command-line tools to c++
2020-06-13 16:56:41 +03:00