Dirk-Jan C. Binnema
b03590cca8
tests: skip missing timezones in queries, too
2022-05-18 01:08:40 +03:00
Dirk-Jan C. Binnema
e835c7eea0
build: fix some clang warnings
2022-05-17 22:42:17 +03:00
Dirk-Jan C. Binnema
a46dab2aad
mu: use locale_workaround for tables
...
The tabulate package triggers some locale exception, let's attempt to work
around it.
2022-05-17 22:32:37 +03:00
Dirk-Jan C. Binnema
6e37790012
mu: improve error reporting
2022-05-15 13:40:44 +03:00
Dirk-Jan C. Binnema
619c1c81fe
fields: add sexp column
...
Indicates whether the given field is part of the s-expression.
2022-05-14 20:42:09 +03:00
Dirk-Jan C. Binnema
907751bc7b
test: enable some more
2022-05-13 23:01:33 +03:00
Dirk-Jan C. Binnema
158117e843
mu: Make commands Result-based
...
Use Result<void> as the return value, simplifying some code.
2022-05-12 08:56:13 +03:00
Dirk-Jan C. Binnema
2e9666af0b
store/info: Gather some usage statistics
...
Keep track of the latest-change/latest-index.
2022-05-10 08:16:47 +03:00
Dirk-Jan C. Binnema
81689f0af3
contacts-cache: return most relevant contacts
...
Return in the contacts in *reverse* rank order, i.e. the most relevant come first.
This is useful since we only want the first maxnum contacts, and those should of
course be the most relevant.
Update mu cfind/server as well.
cfind
2022-05-09 22:25:28 +03:00
Dirk-Jan C. Binnema
80d84bf635
store: use Result<Store> builder, add auto upgrade
...
Make it a Result type, and add auto-upgrade (not enabled yet)
Update dependents.
2022-05-09 22:25:28 +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
d79488efdc
avoid warnings, update tests
2022-05-06 22:54:41 +03:00
Dirk-Jan C. Binnema
ec500d3ed4
update documentation
2022-05-06 22:17:53 +03:00
Dirk-Jan C. Binnema
4fc05261ce
message: implement rfc2047-encoding addresses
...
For address names with commas, quotes etc.
2022-05-06 22:17:53 +03:00
Dirk-Jan C. Binnema
da8489d0f6
sexp: allow for some prettified string output
...
Allow for adding newlines between list items
2022-05-06 22:17:53 +03:00
Dirk-Jan C. Binnema
f9550f3cb6
mu: merge flags into fields command
...
One is enough
2022-05-06 22:17:53 +03:00
Dirk-Jan C. Binnema
62e546a4e2
autotools: fix build
2022-05-05 23:40:56 +03:00
Dirk-Jan C. Binnema
87c122d1bc
cmd-cfind: fix the "--after" handling
...
Use the message-date
2022-05-05 01:40:17 +03:00
Dirk-Jan C. Binnema
e6c3718253
cmd-extra: remove debug output
2022-05-05 01:40:17 +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
85fed37870
message/document: update sexp on the fly
...
Keep the sexp for the document up to date during scan / change, instead of
having a separate step.
2022-05-05 01:40:17 +03:00
Dirk-Jan C. Binnema
8f9d1e5e60
mu: add fields/flags commands
...
Useful information for devising queries.
Directly generated from the source. Add manpages, too.
2022-05-05 01:38:25 +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
b21263da4a
autotools: minor updates
2022-04-18 22:40:46 +03:00
Dirk-Jan C. Binnema
374d708024
mu: update 'extract'
2022-04-18 22:26:04 +03:00
Dirk-Jan C. Binnema
6b8f7db693
mu: update 'verify' command for message changes
2022-04-18 22:26:04 +03:00
Dirk-Jan C. Binnema
c0fe17eb1d
test-mu-cmd: minor tweaks for message update
2022-04-18 22:26:04 +03:00
Dirk-Jan C. Binnema
66ee2004fc
mu: extract Message::Options from command-line
2022-04-18 22:04:33 +03:00
Dirk-Jan C. Binnema
7c51bc68d4
option: rename to to_string_opt and to_string_view_opt
...
to_option_string -> to_string_opt
to_string_view -> to_string_view_opt
2022-04-18 22:04:33 +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
e74a84c7a2
cmd-verify: honor the auto-retrieve flag
2022-04-16 16:20:38 +03:00
Dirk-Jan C. Binnema
d2e8cd0f34
cmd verify: rework in terms of Message
2022-04-16 16:20:38 +03:00
Dirk-Jan C. Binnema
ad12e83eb5
cmd view/extract: rework in terms of Message
2022-04-16 16:20:38 +03:00
Dirk-Jan C. Binnema
db963f66df
cfind: improve clang compatibility
2022-04-04 23:44:20 +03:00
Dirk-Jan C. Binnema
4fb0e0664d
cfind: fix clang compilation (gmtime)
...
And a little code tidiness.
2022-04-04 08:41:20 +03:00
Dirk-Jan C. Binnema
b21e5a57b8
extract: rework in terms of Mu::Message
...
Use the new message class
2022-03-28 22:36:32 +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
2e3fdfaeac
mu-config: cosmetic
2022-03-07 06:50:18 +02:00
Dirk-Jan C. Binnema
04913d8ea9
tests: update for mu-message-fields
2022-03-07 06:50:18 +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
45499efef8
mu/tests: update unit tests
...
CI Ubuntu seems to behave quite differently from my Fedora.
2022-02-27 11:09:15 +02:00
Dirk-Jan C. Binnema
d236ed6e7f
test-mu-cmd: fix for CI
...
Seems on Ubuntu we can get back an even smaller message, which still is okay.
So loosen the check a bit.
2022-02-26 11:23:38 +02:00
Dirk-Jan C. Binnema
724e0fd03a
test-mu-cmd: better log failure
...
Some test fails on Ubuntu (in Github CI), though not locally.
2022-02-26 11:11:04 +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
f10a7560f7
build: fix some warnings
2022-02-21 23:51:46 +02:00
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
a82bd77d09
lib: rename contacts into contacts-cache
...
Plus dependents.
2022-02-21 23:22:42 +02:00
Dirk-Jan C. Binnema
be2f91c0ad
build: update autotools build
2022-02-19 19:32:02 +02:00
Dirk-Jan C. Binnema
c0da564bba
lib: fix clang compatibility / warnings
2022-02-18 10:49:56 +02:00
Dirk-Jan C. Binnema
169921fd21
mu: improve help text generation
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
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
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
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
e818e94d0e
build: fix some scan-build warnings
2022-02-07 17:36:34 +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
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
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
cbb2734078
mu-cmd-index: cosmetic
2022-01-14 17:10:56 +02:00
Dirk-Jan C. Binnema
d389dbb5b3
config: minor cleanup
2021-12-19 23:15:42 +02:00
Dirk-Jan C. Binnema
3001c7832d
tests: add unit test for cjk handling
...
This test exposes some problem finding longer CJK strings; see: issue #1428 .
The test does not _pass_ yet, so skip it for now.
2021-11-22 22:23:18 +02:00
Dirk-Jan C. Binnema
f71c05805c
build: Add some Xapian deps
...
Fixes: issue #2178 .
2021-11-12 23:11:45 +02:00
Dirk-Jan C. Binnema
e672f952a8
index: ignore .update when store is empty
...
This somewhat emulates the 1.4 behavior.
2021-11-11 21:58:23 +02:00
Dirk-Jan C. Binnema
ce08ec3250
doc: remove 'rebuild' remnants
...
There's no --rebuild anymore (since a long time), so let's remove some remnants.
2021-11-11 21:27:05 +02:00
Dirk-Jan C. Binnema
503d7224e0
mu: update the index 'processed' -> 'checked'
...
The 'processed' statistic for indexing was more-or-less synonymous for
'updated'; let's change to something more useful, 'checked' which roughly means
the number of messages checked for updates (typically a cheap timestamp check).
2021-11-10 22:32:28 +02:00
Dirk-Jan C. Binnema
48d3f9cfab
tests: move to subdir, move to meson
...
De-clutter the source directories a bit. Ensure tests build with meson, and
remove from autotools in a few places (no need to do things twice).
2021-11-08 23:58:05 +02:00
Dirk-Jan C. Binnema
6bea54805f
build: fix compiler warning
...
guile: some clang warning
and ensure we get the right Xapian in all places, and fileno is defined.
2021-11-05 09:02:24 +02:00
Dirk-Jan C. Binnema
1c851315ca
build: ensure correct xapian.h is found
2021-11-03 22:13:49 +02:00
Dirk-Jan C. Binnema
32849b243c
gmime-test: ensure fileno is defined
2021-11-03 22:08:16 +02:00
Dirk-Jan C. Binnema
1c95d28cde
config: fix --terminate help display
...
There is no parameter
2021-11-02 22:25:43 +02:00
Dirk-Jan C. Binnema
c087824126
gmime-test: move to mu/tests
...
and build it with meson, too.
2021-11-02 22:13:33 +02:00
Dirk-Jan C. Binnema
13c8879305
mu: move test sources to tests/
2021-11-02 22:12:15 +02:00
Dirk-Jan C. Binnema
428dddd74e
lib/mu: fix a few leaks
...
Thanks to valgrind
2021-10-20 23:06:28 +03: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
5dfd6afdf0
guile: fix user script path detection
...
Fixes : #2159 .
2021-10-18 21:52:37 +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
9bcebb5cf8
build: avoid some compiler warnings
2021-09-02 23:36:43 +03:00
Dirk-Jan C. Binnema
321e747882
update (c) year
...
And some whitespace cleanup. The (c) year doesn't matter too much, but
let's close the ticket.
Fixes : #2075 .
2021-08-03 12:47:20 +03:00
Dirk-Jan C. Binnema
8a3a125ca3
mu-cmd-server: report errors to mu4e
...
Even "existential errors" that cause mu-server not to start.
2021-07-31 01:48:24 +03:00
Dirk-Jan C. Binnema
c8a2151cb9
mu: use g_strerror instead of strerror
...
Some #includes were missing for the latter (but only noticeable on some
systems - e.g., build breaks on Cygwin).
So let's replace with something that works equally everywhere.
Fixes : #2060
2021-07-29 00:02:30 +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
Peter Hoeg
5f2e72776a
fix wrong configuration key reference
2021-06-01 15:13:50 +08: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
af1734f60b
mu-config: small cleanup
...
No need for (void) in c++ signatures
2021-02-15 18:40:54 +02:00
Dirk-Jan C. Binnema
5e359fb739
mu: support '-V' for --version
...
And describe it in the man-page, which erroneously had '-v' which is
used for --verbose.
Fixes : #1927
2021-02-13 13:33:12 +02:00
Dirk-Jan C. Binnema
7a70942e67
build: experimental support for the meson build system
2021-02-12 00:49:35 +02:00
Dirk-Jan C. Binnema
58e4046cbd
test-mu-query: fix MacOS compilation
2021-01-30 13:10:46 +02:00
Dirk-Jan C. Binnema
7fe8b3fcbf
test-mu-query: neuter test on non-linux for now
...
But warn.
2021-01-30 12:58:33 +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
1b3fd722ef
test-mu-query: avoid compiler warning
2021-01-27 20:17:20 +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
7db2e527a8
mu: remove dead test-mu-runtime
2021-01-27 18:57:33 +02:00
Dirk-Jan C. Binnema
9260e4cbe2
mu: avoid some compiler warnings
2021-01-24 14:43:38 +02:00
Dirk-Jan C. Binnema
930adea3b2
test-mu-cmd: turn off unit-test
...
It breaks the CI test setup.
2021-01-23 00:50:23 +02:00
Dirk-Jan C. Binnema
035a10ab49
remove obsolete threading tests
2021-01-22 23:24:53 +02:00