| Age | Commit message (Collapse) | Author |
|
Fix some static analysis warnings
|
|
|
|
Instead of the hacky "rm -rf"
|
|
|
|
|
|
|
|
|
|
Instead of macros, we using C++20 concepts to define the helpers to deal with
bitops on enum-class conveniently.
x# Please enter the commit message for your changes. Lines starting
|
|
Seems they only happen in C++20 mode, not when compiling C++23 mode. So assuming
these are false alarms (old code anyway)
|
|
Use a general mu_log which does the formatting, and specific mu_debug, mu_info
etc., to call it.
|
|
|
|
|
|
Make remove_directory not much less ugly, but at least more robust, e.g., when
the "rm" binary is not at /bin/rm
Add unit test
|
|
When `--quiet` is passed (and not --debug), do not log with g_message at
startup.
|
|
To morph text into valid utf8 if it isn't already.
|
|
They've been deprecated and give build warnings with new enough libfmt.
|
|
|
|
With HAVE_PTHREAD_SETNAME_NP
|
|
When re-initializing the store, automatically write the labels to a file in mu's
cache, so user can later import them.
|
|
Build the tests lazily, i.e., not before `meson test`. This helps with
build-times.
|
|
And update users.
Please enter the commit message for your changes. Lines starting
|
|
mu embeds a "vendored" subset of the libfmt package under thirdparty; but it's
better to use the system-package if the user has one.
So, use the system package if found or user -Duse-embedded-fmt=true is
specified.
|
|
We were logging _everything since the g_log_set_handler was only set for the
default domain, not "mu". Let's fix this.
|
|
Like to_string_gchar, but for malloc/free strings.
|
|
Make it a bit easier to skip some tests when running under valgrind.
|
|
Rework the overly long find-handler.
Improve parsing of options, and return better return properties (for use
in mu4e).
|
|
|
|
Implement a new experimental json2 format for mu-find, which gets rid of
the ":" prefixes for fields, i.e., "subject" instead of ":subject".
Document it as well.
|
|
In a plist, we also require the first of each two element pairs to start
with ':'
Fixes #2830.
|
|
Space between operator"" and _xxx is deprecated.
|
|
|
|
The json output (for mu-find etc.) just showed the converted sexp
output, including the clumsy emacs-style tstamps (for changed/date).
Add unix timestamps as well, which are easier to work with outside
emacs.
This handles #2770.
|
|
Needed for 'join'
|
|
|
|
In Mu::parse_date_time, when provided with an empty string, return
time_t_max instead of G_MAXINT64. For systems with a 64-bit time_t, there
is no difference. With a 32-bit time_t it caused a test to fail:
not ok /utils/date-basic - ERROR:../mu-1.12.4/lib/utils/tests/test-utils.cc:92
void test_date_basic(): assertion failed
(parse_date_time(std::get<0>(test), std::get<1>(test)).value_or(-1)
== std::get<2>(test)): (18446744073709551615 == 2147483647)
This edge case probably only affected the test, as when other parts of
the application call parse_date_time (e.g. mu-server.cc and
mu-query-processor.cc), they check if the input string is empty first.
|
|
Seems journal logging fails on NetBSD (no surprise), but has some
unwanted/not-fully-understood side-effects.
In any case, outside Linux there's no use in even trying to use
journald; so we don't do that anymore.
Add conditional support for syslog (requires glib 2.80).
|
|
netbsd needs this explicitly, other systems let us get away without it.
|
|
We're using ::time_t now.
|
|
Esp. for systems with 32-bit time_t.
|
|
Fixes #2685
|
|
This fixes a compilation failure.
Fixes #2684.
|
|
In musl, `stdout` is a macro that expands to `(stdout)`, and
`::(stdout)` is not valid C++.
../mu-1.12.2/lib/utils/mu-utils.hh:268:32: error: expected
id-expression before '(' token
268 | ::stdout);
| ^~~~~~
Nothing in the Mu namespace is named stdout, so it is safe to drop
the `::`.
Bug: https://bugs.gentoo.org/928361
|
|
From CI.
|
|
It might fail while nl_langinfo does not.
|
|
While not recommended, sometimes it can be useful to disable building
the unit tests. This can be done now with
meson -Dtests=disabled build
|
|
Re-instate the guessing that's in the manpage. Add unit tests.
Update documentation.
Fixes #2616.
|
|
|
|
I.e., work around surprising behavior of wordexp
Fixes #2566.
|
|
And get some more info from run_command.
|
|
|