Dirk-Jan C. Binnema
3c9d1f1ab1
mu: cmd-init: fix batch-size typo
...
Copy-pasta
2023-07-16 13:19:35 +03:00
Dirk-Jan C. Binnema
a32b924692
mu: add "unit" tests for 'mu add'
2023-07-10 23:15:40 +03:00
Dirk-Jan C. Binnema
31f0c40893
migrate to fmt-based logging in some more places
...
and improve logging.
2023-07-08 10:30:36 +03:00
Dirk-Jan C. Binnema
82235b9d49
fmt: more update to use new fmt-based APIs
2023-07-06 21:49:50 +03:00
Dirk-Jan C. Binnema
d96e9cc4ba
mu-info: improve docs; better colors
2023-07-06 19:13:14 +03:00
Dirk-Jan C. Binnema
4920b56671
update to use fmt-based apis
...
Not complete, but a first big stab converting users of Mu::Error and
various g_warning & friends, format to the new libfmt-based APIs.
2023-07-05 23:10:13 +03:00
Dirk-Jan C. Binnema
742ca33740
utils: rework Mu::Error and g_ logging macros with fmt
...
A bit more C++ template magic to remove a lot of code.
2023-07-05 23:07:11 +03:00
Dirk-Jan C. Binnema
9004363aa5
cli: merge 'fields' with 'info' command
...
Update the 'info' command to handle 'fields' as well; remove
fields.
2023-07-05 20:39:47 +03:00
Dirk-Jan C. Binnema
d6416fca5e
cli: add mu-cmd-{add,mkdir-remove}.cc
...
Missing from previous.
2023-07-02 10:04:01 +03:00
Dirk-Jan C. Binnema
c4b5795328
cli: support --ignored-address for init command
...
Allow for skipping unwanted addresses (such as 'noreply') from the
contacts cache.
2023-07-02 10:00:40 +03:00
Dirk-Jan C. Binnema
960a436e77
cli: split off commands into their own .cc files
...
Smaller files are easier to manage
2023-07-02 00:06:56 +03:00
Dirk-Jan C. Binnema
c6fff6a281
all: update for API changes (config etc.)
...
Use the new & improved APIs.
2023-07-02 00:06:56 +03:00
Dirk-Jan C. Binnema
ecf87c5d82
gmime-test: fix leak
2023-06-11 12:23:23 +03:00
Dirk-Jan C. Binnema
9544473e35
mu extract/view/verify: allow reading message from stdin
...
Fixes #1463 .
2023-04-30 10:35:28 +03:00
Dirk-Jan C. Binnema
8762ac27dc
mu: improve error numbers
...
Ensure they match what mu expects.
2023-04-11 20:47:48 +03:00
Dirk-Jan C. Binnema
ec942a988d
tests: always log to file during tests
...
And set the cachedir (for logging and other things) to a random tmpdir.
2023-04-09 14:43:36 +03:00
Dirk-Jan C. Binnema
d90692e27b
tests: turn off dead test test_mu_extract_01
2023-04-09 11:17:02 +03:00
Dirk-Jan C. Binnema
0e44764702
tests: fix links tests
2023-04-09 11:03:42 +03:00
Dirk-Jan C. Binnema
e43452fa18
test: don't "uniqify" link names during test
2023-04-09 11:02:58 +03:00
Dirk-Jan C. Binnema
0ab2371c5c
mu-cfind: re-enable --after option
...
It was still there, but disabled.
Fixes #2470 .
2023-04-08 20:48:46 +03:00
Dirk-Jan C. Binnema
cd23e6015d
mu: allow relative message paths in mu commands
2023-04-06 07:19:26 +03:00
Dirk-Jan C. Binnema
ff1e06c7c8
mu-find: restore JSON output
...
Fixes #2453
2023-03-30 18:12:33 +03:00
Babak Farrokhi
99487c0155
Merge branch 'djcb:master' into master
2023-03-30 15:50:51 +02:00
Dirk-Jan C. Binnema
39101cf583
mu-find: brush off --format=links unit test
...
Enable it by default, and modernize it a little bit
2023-03-28 22:26:56 +03:00
Dirk-Jan C. Binnema
81ee182f05
mu: mu-view: don't insist on absolute path
...
Make it absolute so make_from_path can deal with it.
2023-03-28 20:58:11 +03:00
Babak Farrokhi
597a731099
Reset terminal color after error message
2023-03-26 22:05:47 +02: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