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
Dirk-Jan C. Binnema
769ad20c40
Merge pull request #2203 from mhcerri/mu4e-headers-thread-mark-as-orphan
...
mu4e-headers: Add mu4e-headers-thread-mark-as-orphan option
2022-02-06 10:41:28 +02:00
Dirk-Jan C. Binnema
77bca5463f
store: don't lock for_each_term
...
It's only called from the parser with a store, and when we _already_
hold the lock.
2022-02-05 08:44:43 +02:00
Dirk-Jan C. Binnema
6becc657c1
build: bump version to 1.7.7
2022-02-03 23:04:18 +02:00
Dirk-Jan C. Binnema
6dafffd07a
mu4e-server: tweak stopping the mu4e server
...
Stop listening for server output when we're shutting down.
2022-02-03 23:04:18 +02:00
Dirk-Jan C. Binnema
4d0ecf7f85
server: make indexing asynchronous
...
Perform indexing in a background thread.
2022-02-03 23:04:18 +02:00
Dirk-Jan C. Binnema
b6d7d142f6
server: support flushing the output
...
So we can get some progress output
2022-02-03 23:04:18 +02:00
Dirk-Jan C. Binnema
05393ba797
index: save/commit metadata after messages
...
Ensure the metadata (dirstamps) for messages are only written / committed _after_
the accompanying message have been written / committed.
This avoids missing updates when indexing gets terminated unexpectedly.
2022-02-03 23:04:18 +02:00
Dirk-Jan C. Binnema
12658a3dc6
cmd-server: improve signal handling
...
use a static signal handling function, which is easier to check than a lambda.
2022-01-30 14:52:41 +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
5fc8a8f83e
store/query: access query only through store
...
Make Mu::Query only accessible through store, so we can lock the db for the
duration of a (full, multipass) query.
2022-01-30 14:52:41 +02:00
Dirk-Jan C. Binnema
cc3be78dc5
mu4e-main: use mu4e~headers-jump-to-maildir
...
Re-fix hasty earlier fix; and improve the code a bit.
HT: @tsdh.
2022-01-29 19:53:37 +02:00
Dirk-Jan C. Binnema
b8e696000f
mu4e-main: fix jump-to-maildir typo
...
Fixes : #2206
2022-01-29 15:55:51 +02:00
Dirk-Jan C. Binnema
3138b2d1a9
mu-find.1: Document correct return value
...
And some cleanups.
Fixes : #2204 .
2022-01-29 10:42:26 +02:00
Dirk-Jan C. Binnema
20568cba70
mu4e-view: open tmp files read-only
...
When using the "open-in-emacs" handler, open the temp file as read-only. It's a
temp file, so editing isn't very useful.
2022-01-24 19:00:19 +02:00
Dirk-Jan C. Binnema
de3c9a25e8
mu4e.texi: improve mu4e-mailing-list-patterns example
2022-01-23 14:27:00 +02:00
Dirk-Jan C. Binnema
a30cc3d9e9
NEWS.org: update
2022-01-23 14:27:00 +02:00
Dirk-Jan C. Binnema
a4707afe12
mu4e: cleanups and flycheck fixes
...
- Remove some unused faces
- Fix some flycheck warnings
- Replace some `cl-` functions with `pcase` and `seq`
2022-01-23 14:27:00 +02:00
Dirk-Jan C. Binnema
3e3d26be8f
clang-format: tweaks
2022-01-23 10:29:22 +02:00
Marcelo Henrique Cerri
74437b6374
mu4e-headers: Add mu4e-headers-thread-mark-as-orphan option
...
To mark only the first message in the thread as orphan, allowing to
replicate the thread structure used by mutt and other clients.
2022-01-19 16:59:38 -03:00
Dirk-Jan C. Binnema
aa2ba0f102
build: bump version to 1.7.6
2022-01-18 17:00:01 +02:00
Dirk-Jan C. Binnema
a6b996d00e
search: restore jump-to-message
...
Fixes : #2169 .
2022-01-18 17:00:01 +02:00
Dirk-Jan C. Binnema
f035c801bb
store: save contacts more often
...
Use the new Contacts::dirty() so serialize/save the contacts whenever we commit
a transaction.
And some cosmetics.
2022-01-15 15:12:38 +02:00
Dirk-Jan C. Binnema
ca4651a891
mu-contacts: add dirty()
...
Maintain a "dirtiness" number, which increases with changes, and resets after
serialize().
2022-01-15 15:11:26 +02:00
Dirk-Jan C. Binnema
be4fc67584
mu-cfind: don't show error when there are no matches
...
And some cosmetics
2022-01-15 12:48:53 +02:00
Dirk-Jan C. Binnema
244e10bf7d
clang-format: tweak
...
Don't set the column-limit, since clang-format interprets that as "the length
any line should aspire to" rather than "the length no line shall pass".
It shouldn't mangle shorter lines.
2022-01-15 12:48:53 +02:00
Dirk-Jan C. Binnema
e5ead56b2a
mu4e-view: fix flycheck warnings
...
Let's make things clean.
2022-01-15 12:00:27 +02:00
Dirk-Jan C. Binnema
a4e5e3adf5
mu4e: attempt to delete loading window upon mu4e-error
...
When there's a mu4e-error, opportunistically delete the 'Loading..' window.
2022-01-15 10:44:03 +02:00
Dirk-Jan C. Binnema
dfe592ac4f
mu-server: check for message readability
...
When querying, avoid showing any messages that do not exists on the file system.
2022-01-15 10:21:32 +02:00