Commit Graph

500 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 47cbd45f90 gmime-test: fix leak 2023-06-16 10:37:19 +03:00
Dirk-Jan C. Binnema a9e96ff935 mu: improve error numbers
Ensure they match what mu expects.
2023-04-15 08:02:35 +03:00
Dirk-Jan C. Binnema c78435a6fe tests: always log to file during tests
And set the cachedir (for logging and other things) to a random tmpdir.
2023-04-09 15:04:19 +03:00
Dirk-Jan C. Binnema c09b93a129 tests: turn off dead test test_mu_extract_01 2023-04-09 15:04:09 +03:00
Dirk-Jan C. Binnema 3706fd4786 tests: fix links tests 2023-04-09 15:04:03 +03:00
Dirk-Jan C. Binnema b56698a113 test: don't "uniqify" link names during test 2023-04-09 15:03:59 +03:00
Dirk-Jan C. Binnema a8f2f7497f mu-cfind: re-enable --after option
It was still there, but disabled.

Fixes #2470.
2023-04-08 20:52:40 +03:00
Dirk-Jan C. Binnema a156b52ddd mu: allow relative message paths in mu commands 2023-04-06 07:50:21 +03:00
Dirk-Jan C. Binnema 72096bfed6 mu-find: restore JSON output
Fixes #2453
2023-04-02 09:26:18 +03:00
Dirk-Jan C. Binnema bdf3253783 mu-find: brush off --format=links unit test
Enable it by default, and modernize it a little bit
2023-04-02 09:25:50 +03:00
Dirk-Jan C. Binnema 15777abe3c mu: mu-view: don't insist on absolute path
Make it absolute so make_from_path can deal with it.
2023-04-02 09:25:43 +03:00
Babak Farrokhi 34b4288fe5 Reset terminal color after error message 2023-04-02 09:25:29 +03:00
Dirk-Jan C. Binnema 96e16034c7 contact: fix quoting
Ensure that addresses with commas are quoted. Don't 2047-encode though.

Update tests.
2023-03-14 06:18:56 +02:00
Dirk-Jan C. Binnema ff08731298 mu: add --uncooked option for mu extract
To avoid replacing spaces with dashes

Fixes #2434.
2023-02-23 20:23:25 +02:00
Dirk-Jan C. Binnema 3d4805de0c server: small output improvement
For human users.
2023-02-17 10:20:14 +02:00
Dirk-Jan C. Binnema abfa6f277c mu: index html text as if it were plain text
This is a bit of hack to include html text in results.

Of course, html text is not really plain text, so this is a bit of a
hack until we introduce some html parsing step.
2023-01-31 23:41:57 +02:00
Dirk-Jan C. Binnema 3ec960c609 mu: improve mu-error
Add specific error-code for SchemaMismatch

Combine find/cfind no-matches
2023-01-29 15:38:40 +02:00
Dirk-Jan C. Binnema e21d59e346 mu init: implement --reinit option
Create new mu database from an existing one.
2023-01-29 13:40:40 +02:00
Dirk-Jan C. Binnema 7db93fb0a7 mu-server: cosmetic 2023-01-29 12:03:13 +02:00
Dirk-Jan C. Binnema 4194f17440 mu: allow color in early command errors 2023-01-18 00:14:02 +02:00
Dirk-Jan C. Binnema 80a4842cb0 cfind: fix clang compiler warning 2023-01-16 22:35:20 +02:00
Derek Zhou 49fb937d61
fix batch-size option in sub_init
I use mu on a resource constrained VPS, so I need to reduce batch-size from the default value, thus I found this bug.
2023-01-15 12:54:04 -05:00
Dirk-Jan C. Binnema 6979a66630 utils: get rid of mu-util.[ch]
It was getting old...
Remove the unused parts, refactor the few parts still in use.
2023-01-14 20:02:05 +02:00
Dirk-Jan C. Binnema 8b7e63e84f mu-cfind: use UTC in json output
Fixes #2391.
2022-12-30 23:37:23 +02:00
Dirk-Jan C. Binnema 5300b7ce82 cfind: rework, add support for json output
Update the old cfind code, and add json output support while doing so.
2022-12-30 15:14:17 +02:00
Dirk-Jan C. Binnema 27ecbbdd65 many: use Mu::Regex instead of std::regex
The former is PCRE-compatible, and faster than std::regex.
2022-12-30 11:15:03 +02:00
Dirk-Jan C. Binnema 9eaad5ad9c mu-find: support shortcut chars in --sortfield
Fixes #2384.
2022-12-18 01:09:58 +02:00
Dirk-Jan C. Binnema 39a2c28777 mu: honor nocolor option
1. mu find hallo              --> color
2. mu find hallo | less       --> nocolor
3. NO_COLOR=yes mu find hallo --> nocolor

Fixes #2369.
2022-11-24 18:43:05 +02:00
Dirk-Jan C. Binnema 71162ee74f mu-find: bring back --reverse
It was missing after the cmdline parsing landed.

Fixes issue #2368.
2022-11-23 22:35:57 +02:00
Dirk-Jan C. Binnema 4d1352ec56 mu/options: Support date sortfield
Fixes #2368.
2022-11-22 23:16:37 +02:00
Dirk-Jan C. Binnema ca33726628 mu/script: fix printing
Missing c_str, caught by macos build.
2022-11-19 11:16:45 +02:00
Dirk-Jan C. Binnema f4ac16db5a mu/options: Add missing include unordered_map
This broke the MacOS build
2022-11-19 11:10:12 +02:00
Dirk-Jan C. Binnema f43e991468 tests: update
Minor updates for the new CLI
2022-11-17 11:00:06 +02:00
Dirk-Jan C. Binnema cec08ab1ea script: Rework guile script with new CLI support
Integrate the guile scripting a bit better into the mu cmdline.
Rework the old script module for that.
2022-11-17 11:00:06 +02:00
Dirk-Jan C. Binnema 36f6e387ae mu: implement new command-line parser
Implement a new command-line parser, based on CLI11.

It's a bit more C++'ish, and allows for a lot of fancy things... some of
which we have implemented here.

Update the various commands to use the new Options struct

Remove the old help strings; instead e.g. `mu help view` opens the
manpage.

Integrate the guile scripts more tightly.
2022-11-17 11:00:06 +02:00
Dirk-Jan C. Binnema 08ffba42b9 mu/cmd: update for new sexp API
Makes the code a bit cleaner.
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema 3d97db8ffc view: be clearer there's no text body found
There may have been an html body, but mu-view only shows a text-body;
make that clearer.

Add a test case for an html-only message.

Fixes #2349.
2022-10-16 00:57:19 +03:00
Dirk-Jan C. Binnema 44d3cefbf7
Merge pull request #2342 from sje30/patch-7
Update copyright to 2022
2022-10-02 14:34:34 +03:00
Stephen Eglen 36d006171d
Update copyright to 2022 2022-09-30 20:36:48 +01:00
Dirk-Jan C. Binnema e416a5215f autotools: remove
Since 2008, autotools has served us well - thank you!

However, mu is now using meson build, and it's time to remove the
autotools support -- one build system is enough.
2022-08-20 11:19:29 +03:00
Dirk-Jan C. Binnema 317fe53ff7 tests: update test helpers and users
Move test-mu-common to mu-test-utils. Use mu_test_init as a wrapper for
g_test_init. Update users.
2022-08-11 22:55:10 +03:00
Dirk-Jan C. Binnema 1c57d91e26 mu-find: don't show deleted messages
Filter out messages for which there is no corresponding file.

Fixes #2306.
2022-07-19 21:54:26 +03:00
Dirk-Jan C. Binnema 8d2a805672 config: remove help_enabled flag
We of course still have "mu help <command>" but don't suggest help
options that do not exist.

Fixes #1664.
2022-06-30 07:44:03 +03:00
Dirk-Jan C. Binnema 9987ceb7a7 cmd-find: fix link generation
And some minor cleanups.
2022-06-29 07:50:16 +03:00
Dirk-Jan C. Binnema 0fe8f9a613 mu-util-play: simplify
Remove some unused options
2022-06-04 00:41:28 +03:00
Dirk-Jan C. Binnema 734445f78d mu-server: add a bit more debugging info 2022-05-30 20:30:33 +03:00
Dirk-Jan C. Binnema b1ff292bbb mu: support MUHOME environment variable 2022-05-29 11:10:46 +03:00
Dirk-Jan C. Binnema cea3167f3e lib: remove some dead code (mu-str/utils)
Remove unused library code; recycle some electrons.
2022-05-19 23:38:49 +03:00
Dirk-Jan C. Binnema 2bc83b3c03 mu-info: turn back on again
This reverts commit c708e0996b.

Doesn't avoid the macos ci crash
2022-05-18 08:22:09 +03:00
Dirk-Jan C. Binnema c708e0996b mu-info: temporarily turn off 2022-05-18 08:07:59 +03:00