Dirk-Jan C. Binnema
4eddf4e6ba
update unit tests
2022-02-21 23:51:46 +02:00
Dirk-Jan C. Binnema
7822d2633e
update contacts-cache users for MessageContact
...
Since contacts-cache now uses MessageContact, update its users
2022-02-21 23:51:46 +02:00
Dirk-Jan C. Binnema
4b9814be25
contacts-cache: Rework to use MessageContact
...
Replace the internal ContactInfo with MessageContact, so we can use the same
type throughout.
2022-02-21 23:51:46 +02:00
Dirk-Jan C. Binnema
a82bd77d09
lib: rename contacts into contacts-cache
...
Plus dependents.
2022-02-21 23:22:42 +02:00
Dirk-Jan C. Binnema
39c45abc38
mu-store: use Mu::MessageContact
...
Use the new contact class. And a lot of whitespace cleanups.
2022-02-21 23:22:42 +02:00
Dirk-Jan C. Binnema
6a7e706354
guile: use Mu::MessageContact
...
Use the new contact class
2022-02-21 23:22:42 +02:00
Dirk-Jan C. Binnema
3aa053e158
mu-msg: use Mu::MessageContact
...
Use the new contact class
2022-02-21 23:22:42 +02:00
Dirk-Jan C. Binnema
d436a47c1f
lib: Implement Mu::MessageContact
...
Implement a new struct Mu::MessageContact to usurps some of the different types
for contact information.
Sprinkle some "modern C++" on it for convenience.
2022-02-21 23:22:42 +02:00
Dirk-Jan C. Binnema
69a465d849
mu-sexp: add some small conveniences
2022-02-20 14:08:53 +02:00
Dirk-Jan C. Binnema
be2f91c0ad
build: update autotools build
2022-02-19 19:32:02 +02:00
Dirk-Jan C. Binnema
4f81f04d24
toys/mug: fix compilation
...
After all the changes
2022-02-19 19:31:37 +02:00
Dirk-Jan C. Binnema
1a13e4f0fd
mu-message-priority: set namespace correctly
2022-02-19 19:16:49 +02:00
Dirk-Jan C. Binnema
8cea933a51
mu-store: take mu_util_get_hash
...
mu-store is the only user left, move the implementation there.
2022-02-19 19:09:25 +02:00
Dirk-Jan C. Binnema
286badf802
build: bump warning level to 2
2022-02-18 10:52:41 +02:00
Dirk-Jan C. Binnema
c0da564bba
lib: fix clang compatibility / warnings
2022-02-18 10:49:56 +02:00
Dirk-Jan C. Binnema
d2e6cfdf70
build: update Makefile.meson with some useful targets
...
For testing.
2022-02-18 07:12:56 +02:00
Dirk-Jan C. Binnema
fe2b1693c1
lib/message-flags: update whitespace & clang++ appeasement
2022-02-18 07:12:56 +02:00
Dirk-Jan C. Binnema
0f87cedb77
build: bump version to 1.7.8
2022-02-17 23:49:17 +02:00
Dirk-Jan C. Binnema
169921fd21
mu: improve help text generation
2022-02-17 23:49:17 +02:00
Dirk-Jan C. Binnema
80f947024a
server: lock run_query
...
So the query-results don't outlive the lock.
2022-02-17 23:49:17 +02:00
Dirk-Jan C. Binnema
831d26052a
store: expose the mutex so we can lock query-results
...
The QueryResults must not outlive the lock (when in a MT context), so expose for
clients (mu-server) to handle it.
2022-02-17 23:49:17 +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
abd2a4a8f1
lib: Update mu-maildir for modern times
...
Update the good-old mu-maildir to be a bit more... modern.
2022-02-17 23:48:59 +02:00
Dirk-Jan C. Binnema
1db70c05e6
utils/async-queue: appease helgrind
...
We used notify_one _outside_ the lock; that should be just fine... but helgrind
doesn't like it, so let's appease it.
2022-02-17 23:48:59 +02:00
Dirk-Jan C. Binnema
d2a75f600d
tickle: remove
...
Remove the hidden 'tickle' command; it wasn't really advertised so I'm sure
nobody is using it (xkcd/1172).
Well, it'd need to be reworked anyway.
2022-02-17 23:48:59 +02:00
Dirk-Jan C. Binnema
f6f17d5d6b
*: update code for Mu::MessageFlags
...
Migrate the code to use the new niceness
2022-02-17 23:48:59 +02:00
Dirk-Jan C. Binnema
473134a7b1
lib: replace MuFlags with Mu::MessageFlags
...
Modernize the ancient MuFlags code to C++17
2022-02-16 23:18:16 +02:00
Dirk-Jan C. Binnema
c5538d5b14
utils: update optional & expected
...
Use the latest upstream versions.
2022-02-16 23:18:16 +02:00
Dirk-Jan C. Binnema
bc44666d88
mu-str: Remove some dead code
2022-02-16 21:55:02 +02:00
Dirk-Jan C. Binnema
dce924da9c
mu-error: Better support for GError
...
Allow filling a GError from a Mu::Error
2022-02-16 21:55:02 +02:00
Dirk-Jan C. Binnema
80cbf7c75b
utils: Improve Mu::Result
...
Ensure the Ok() and Err() actually work, and add support for Result<void>
2022-02-16 21:55:02 +02:00
Dirk-Jan C. Binnema
6ff1831200
utils: make MU_ENABLE_BITOPS more constexpr
2022-02-14 11:12:38 +02:00
Dirk-Jan C. Binnema
3086238b33
store: expose metadata()/set_metadata()
...
Allow for storing metadata in the database, and consider the cache.
2022-02-14 11:12:26 +02:00
Dirk-Jan C. Binnema
3820118246
store: rename "metadata" into "properties"
...
properties are the constant (for the duration) values for a store; metadata may
change, so reserve that name for that.
2022-02-14 11:12:26 +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
13bcc6eb5d
lib: replace MuMsgPrio with Mu::MessagePriority
...
Rework good-old MuMsgPrio into Mu::MessagePriority, which looks a bit more like
modern C++.
2022-02-14 11:12:16 +02:00
Dirk-Jan C. Binnema
5fbebbff86
tweak coding style / configuration
...
clang-format is a pain :-(
2022-02-13 14:33:12 +02:00
Dirk-Jan C. Binnema
a0ec982789
mu4e/server: honor rename-move for view-message, too
...
It's technically a 'move', so apply user preference.
2022-02-13 14:33:12 +02:00
Dirk-Jan C. Binnema
a66fd4dae4
mu4e-headers: warn earlier when message does not exist
...
check path before trying to show it.
2022-02-13 12:04:47 +02:00
Dirk-Jan C. Binnema
43c44cf6cd
store: catch dtor exception
2022-02-07 22:34:49 +02:00
Dirk-Jan C. Binnema
ea3083da2e
mu: config: fix leak
2022-02-07 22:13:58 +02:00
Dirk-Jan C. Binnema
9b77a12db7
mu: cmd-index: make signal-handler thread-safe
2022-02-07 22:01:11 +02:00
Dirk-Jan C. Binnema
18ddbe06e6
indexer: fix some threading issues with Progress
...
Make it a const object with atomic members.
2022-02-07 20:49:43 +02:00
Dirk-Jan C. Binnema
a628f214a1
index: fix thread-sanitizer issue
...
Need a lock to access workers_;
2022-02-07 18:03:53 +02:00
Dirk-Jan C. Binnema
e818e94d0e
build: fix some scan-build warnings
2022-02-07 17:36:34 +02:00
Dirk-Jan C. Binnema
8493e8649d
mu-utils: try g_autoptr/g_autofree
...
It's useful, but let's if it works for all targets.
2022-02-06 14:18:23 +02:00
Zero King
d0a3ca3453
utils: validate string before g_utf8_next_char()
2022-02-06 14:18:23 +02:00
Dirk-Jan C. Binnema
c3503ba663
server: flush the "indexing complete" message
2022-02-06 14:18:23 +02:00
Dirk-Jan C. Binnema
3f163e65e0
update NEWS.org
2022-02-06 11:16:46 +02:00
Dirk-Jan C. Binnema
99993bea69
mu4e-headers: tweak mark-as-orphan option
...
Make 'first the default, and some whitespace fixes.
2022-02-06 10:44:47 +02:00