Kristian Rietveld
c3032bd672
mu-store: enlarge buffer for strftime
...
On Debian 9 random memory was printed with the original buffer size
and valgrind complained about the use of uninitialized memory.
2020-05-01 20:47:45 +02:00
Dirk-Jan C. Binnema
7c3673b3de
mu: do a full index when the database is empty
...
I.e., do _not_ honor .noupdate in that case.
2020-04-29 20:27:49 +03:00
Dirk-Jan C. Binnema
06d3deb4cc
guile: path updates for 2.2
2020-04-20 00:01:07 +03:00
Dominik Schrempf
ccbd81f6ef
~/.mu -> ~/.cache/mu
2020-04-19 13:02:48 +02:00
Dirk-Jan C. Binnema
a4fded5edd
mu: ensure some struct members are initialized
2020-03-31 21:19:03 +03:00
Dirk-Jan C. Binnema
46ae663937
mu4e: use faster count queries, document differences
...
Use faster queries for counting read/unread messages; document why the
results might differ from what you get doing a normal search.
2020-03-15 01:23:01 +02:00
Dirk-Jan C. Binnema
49883806f6
store: remove unused code, use batchsize
2020-03-02 23:19:34 +02:00
Dirk-Jan C. Binnema
a76720af42
make OP_WILDCARD non-conditional
...
Since we require Xapian 1.4 anyway, there's no need to make OP_WILDCARD
conditional.
2020-03-02 23:02:17 +02:00
damon-kwok
56b434347e
error fix for gcc 9.x
2020-02-29 20:40:22 +08:00
Dirk-Jan C. Binnema
07e4a28deb
man: remove max-msg-size from index man-page
...
We still keep in the code, as there are some future plans to handle it
there in a different way.
Fixes #1591 .
2020-02-26 19:31:24 +02:00
Dirk-Jan C. Binnema
934adae70a
lib: use same allocator when copying MuMsgPartSigStatusReport
...
Fixes a sigabrt when freeing later.
2020-02-23 15:20:01 +02:00
Dirk-Jan C. Binnema
ac164b7e26
mu-command-parser: do not allow unknown parameters
...
We were simply ignoring unknown parameters; but it's better to raise an
error, as it's likely unintented (typo or otherwise)
2020-02-22 14:11:54 +02:00
Dirk-Jan C. Binnema
650c4c052d
store: catch exceptions in dtor
2020-02-21 19:29:27 +02:00
Dirk-Jan C. Binnema
ff79d2b7d3
msg-crypto: fix small leak
2020-02-21 19:29:27 +02:00
Dirk-Jan C. Binnema
8d6d151090
server: support readline history / persistence
...
When using readline, remember the last 50 commands; persist.
2020-02-21 01:17:23 +02:00
Dirk-Jan C. Binnema
20ce7b7066
lib/parser -> lib/query
...
And update the names to follow the mu- convention.
2020-02-20 21:53:48 +02:00
Dirk-Jan C. Binnema
c4c56fa7f0
mu-store: auto-commit store in dtor
2020-02-17 22:29:44 +02:00
Dirk-Jan C. Binnema
0b4dee6996
mu-script: fix compiler warning
2020-02-17 21:45:21 +02:00
Dirk-Jan C. Binnema
beb1b3199f
mu-msg-part: clean up error paths
...
Ensure things get freed even when an error occurs.
2020-02-15 14:10:59 +02:00
Dirk-Jan C. Binnema
c22eb434b7
mu: improve crypto handling
2020-02-14 00:36:54 +02:00
Julien Masson
c4ccaf0fdb
mu: sort childs of thread based on the sortfield only
...
Today when we query a find cmd with the `--threads` option, all the
childs of each thread are sorted according to their leader based on
the sortfield.
This patch change the way of how the childs of a thread are sorted.
The threads are still sorted according to their leader but all the
childs of each thread are now sorted based on the sortfield only.
Here is an example of what happened with the previous sorting:
Example with random kernel thread sorted by date:
[PATCH 0/4] drm/panel: jh057n0090: Add regulators and drop magic value in init
┣━▶[PATCH 1/4] MAINTAINERS: Add Purism mail alias as reviewer for their devkit's panel
┣━▶[PATCH 2/4] drm/panel: jh057n0090: Don't use magic constant
┣━▶[PATCH 3/4] dt-bindings: display/panel: jh057n0090: Document power supply properties
┗━▶[PATCH 4/4] drm/panel: jh057n0090: Add regulator support
If someone reply to one of these emails in the middle, this email
become the leader and the thread is displayed like this:
[PATCH 0/4] drm/panel: jh057n0090: Add regulators and drop magic value in init
┣━▶[PATCH 2/4] drm/panel: jh057n0090: Don't use magic constant
┃ ┗━▶ Re: [PATCH 2/4] drm/panel: jh057n0090: Don't use magic constant
┣━▶[PATCH 1/4] MAINTAINERS: Add Purism mail alias as reviewer for their devkit's panel
┣━▶[PATCH 3/4] dt-bindings: display/panel: jh057n0090: Document power supply properties
┗━▶[PATCH 4/4] drm/panel: jh057n0090: Add regulator support
With this patch, we will have the following output:
[PATCH 0/4] drm/panel: jh057n0090: Add regulators and drop magic value in init
┣━▶[PATCH 1/4] MAINTAINERS: Add Purism mail alias as reviewer for their devkit's panel
┣━▶[PATCH 2/4] drm/panel: jh057n0090: Don't use magic constant
┃ ┗━▶ Re: [PATCH 2/4] drm/panel: jh057n0090: Don't use magic constant
┣━▶[PATCH 3/4] dt-bindings: display/panel: jh057n0090: Document power supply properties
┗━▶[PATCH 4/4] drm/panel: jh057n0090: Add regulator support
The tests cases concerning threads have also been updated.
Signed-off-by: Julien Masson <massonju.eseo@gmail.com>
2020-02-10 15:42:39 +01:00
Dirk-Jan C. Binnema
f50360f94e
mu-store: implement Store::find_message
2020-02-10 01:00:42 +02:00
Dirk-Jan C. Binnema
24932c12b7
remove some dead code
2020-02-10 01:00:01 +02:00
Dirk-Jan C. Binnema
aa10da0a63
store: rework to allow for 'init'
...
Rework the error handling / exception for read-only / writable and new
database.
2020-02-08 14:28:55 +02:00
Dirk-Jan C. Binnema
f51846eefc
mu: implement init, info commands
...
'init' is for the inital database setup
'info' is for gettting information about the mu database.
2020-02-08 14:28:55 +02:00
Dirk-Jan C. Binnema
2575b2d0e3
mu: better error handling for opening database read-only
...
Be a bit clearer for the user.
2020-02-04 21:14:30 +02:00
Dirk-Jan C. Binnema
38779cfade
mu: no need to pass 'maildir' when we can deduce it
...
Only needed when setting up the database.
2020-02-04 01:05:35 +02:00
Dirk-Jan C. Binnema
1ea6f6a55e
lib/utils: Add Message error.
2020-01-31 00:23:00 +02:00
Dirk-Jan C. Binnema
e51240f43f
mu: lib: update store API. update some dependents
...
Implement add_message / remove_message.
Rename path_tstamp -> dirstamp.
Rename maildir -> root_maildir
Update dependents.
2020-01-31 00:20:34 +02:00
Dirk-Jan C. Binnema
ba370f748c
mu: sexp-parser: add support for negative numbers
...
We need those too!
2020-01-25 19:54:37 +02:00
Dirk-Jan C. Binnema
f21ceea421
sexp-parser: improve error message
2020-01-25 19:31:20 +02:00
Dirk-Jan C. Binnema
7d83a1c5d6
server: improve command documentation output
...
required args come first, then alphabetic.
2020-01-25 11:51:38 +02:00
Dirk-Jan C. Binnema
e119ac919b
mu: fix clang compilation
2020-01-24 00:21:53 +02:00
Dirk-Jan C. Binnema
4b4e8dd6d7
utils/sexp-parser: include ostream
2020-01-23 23:17:00 +02:00
Dirk-Jan C. Binnema
6dcc712b51
msg-crypto: add support for more signature-status values
2020-01-22 21:02:17 +02:00
Dirk-Jan C. Binnema
bdec1fe9c4
mu-query: implement mu_query_count_run
...
To get the number of matches and nothing else.
2020-01-22 11:42:15 +02:00
Dirk-Jan C. Binnema
bb932fa217
mu: don't need a path argument for index
...
We get it from the store.
2020-01-22 11:42:15 +02:00
Dirk-Jan C. Binnema
d2ec85f01c
mu4e: use the new command-parser
...
Update mu4e-proc to use the new mu4e <-> mu protocol
2020-01-22 11:42:15 +02:00
Dirk-Jan C. Binnema
c7680b78b9
utils: Implement sexp command parser
...
Implement a sexp parser, and on top of that a command parser (for mu4e
commands). Add tests, too.
2020-01-21 20:58:18 +02:00
Dirk-Jan C. Binnema
6818c7df6c
mu-msg: plug some leaks
2020-01-19 17:33:32 +02:00
Dirk-Jan C. Binnema
a3d71dab91
utils: Update error exception, utils.
2020-01-18 13:40:15 +02:00
Dirk-Jan C. Binnema
e203e26a38
mu-sexp: improve list-post regexp
...
Support more addresses.
2020-01-08 23:23:13 +02:00
Dirk-Jan C. Binnema
b2014fe93e
use g_snprintf instead of snprintf
...
Seems the latter cannot be found on some platforms; perhaps a
c++/namespace thing?
Use g_snprintf instead.
2020-01-07 23:17:15 +02:00
Dirk-Jan C. Binnema
38a91f3696
mu: include list-post address in message sexp
...
If there's a list-post address, include it in the message-sexp, so we
can use it when replying.
2020-01-07 22:45:20 +02:00
Dirk-Jan C. Binnema
f4874cd7e1
lib/utils: Update
2020-01-05 17:46:21 +02:00
Dirk-Jan C. Binnema
12b34be3cf
mu: allow for code-coverage reports
2020-01-01 15:56:48 +02:00
Dirk-Jan C. Binnema
ad63044915
mu: Fix some compiler warnings
2020-01-01 15:56:48 +02:00
Dirk-Jan C. Binnema
80c5e25b08
mu: move mu/mu/tests, lib/tests one level up
...
Makes it easier to generator code-coverage reports
2020-01-01 15:56:48 +02:00
Dirk-Jan C. Binnema
97afdd9e3c
lib: Use Mu:Error exception
...
Where applicable.
2020-01-01 13:25:07 +02:00
Dirk-Jan C. Binnema
dfafecaf0c
utils: add Mu::Error (runtime exception)
2020-01-01 13:25:07 +02:00