Samvid Mistry
15d4f23e34
start mu4e through shell
2023-11-01 13:59:57 +05:30
Samvid Mistry
e4ac3f205d
Preserve single and double slashes while joining
2023-11-01 13:58:44 +05:30
Dirk-Jan C. Binnema
a71b4f5e8d
options: expand option file paths
...
Fixes #2528
2023-08-03 22:47:27 +03:00
Dirk-Jan C. Binnema
ade62fc67c
options: implement ExpandPath transformer
...
For expanding shell options (with expand_path / wordexp)
Note that e.g. in zsh: --maildir=~/Maildir is handled (program receives
--maildir=/home/user/Maildir) but e.g. bash does not do that, and the
program receives the literal '~/Maildir'
We expanded this in mu earlier, so let's do that again.
2023-08-03 22:47:27 +03:00
Dirk-Jan C. Binnema
111e48efa3
utils: add expand_path (wordexp wrapper)
...
For expanding command-line options for shells that don't do that by themselves.
2023-08-03 22:47:27 +03:00
Dirk-Jan C. Binnema
b91272aca2
mu-mkdir manpage: small fix
2023-08-03 19:49:39 +03:00
Dirk-Jan C. Binnema
890fc46da9
mu4e-update: save last update results in *mu4e-last-update*
...
This can be useful for diagnosis.
Fixes #2455
2023-08-03 19:48:49 +03:00
Dirk-Jan C. Binnema
2f98dacade
mu4e/mu4e.texi: fix external links in html
...
Fixes #2182 .
2023-08-03 19:48:49 +03:00
Dirk-Jan C. Binnema
5409c2cd87
mu-view: attempt to avoid locale diffs in test
...
A bit ugly attempt make tests work in CI
2023-07-30 00:51:12 +03:00
Dirk-Jan C. Binnema
33fd79a9f0
mu-regex: add multiline test
2023-07-30 00:50:45 +03:00
Dirk-Jan C. Binnema
3a38d6366a
mu-view: test locale to C for tests
2023-07-29 17:25:07 +03:00
Dirk-Jan C. Binnema
3ada6af63a
mu-view: check for timezone availability in tests
2023-07-29 16:39:44 +03:00
Dirk-Jan C. Binnema
766d1849ff
test-utils: add TempTz, RAII temporary timezone
2023-07-29 16:39:08 +03:00
Dirk-Jan C. Binnema
1f0342a91f
mu-view: add unit-test
2023-07-28 19:43:46 +03:00
Dirk-Jan C. Binnema
2950a3f103
NEWS.org: improve ignored-address example
2023-07-28 19:42:53 +03:00
Dirk-Jan C. Binnema
c9b64a0114
mu4e-compose: jit-start mu4e in mu4e-compose
...
Just in case it wasn't running yet.
Fixes #2526
2023-07-28 19:35:39 +03:00
Dirk-Jan C. Binnema
dc29dc8395
html-to-text: add missing include <array>
2023-07-26 23:30:54 +03:00
Dirk-Jan C. Binnema
c06e765d13
html-to-text: be explicit with array type
...
clang in CI fails to deduce it, so let's help it a bit.
2023-07-26 23:24:29 +03:00
Dirk-Jan C. Binnema
275859a5b3
build: bump version to 1.11.12
2023-07-26 19:12:27 +03:00
Dirk-Jan C. Binnema
455119f695
Merge branch 'wip/djcb/html-to-text'
2023-07-26 19:11:41 +03:00
Dirk-Jan C. Binnema
21a760d2c7
NEWS.org: update
2023-07-26 19:10:36 +03:00
Dirk-Jan C. Binnema
30b0209f8d
mu-info: add 'topic mu' information; improve manpage
...
Show some more runtime information in the 'mu' topic, and make that the
default. Update manpage.
2023-07-26 19:09:18 +03:00
Dirk-Jan C. Binnema
3aecaca9b9
build: bump version to 1.11.11
2023-07-26 19:06:04 +03:00
Dirk-Jan C. Binnema
da290c21a9
benchmark: improve setup
...
Add some useful make targets, and separate (optimized) build.
2023-07-25 23:56:19 +03:00
Dirk-Jan C. Binnema
4c0b7db3d8
store: add 'add_document' optimization, use it
...
*Usually* we need Xapian's replace_document() API, but when we know a
document (message) is completely new, we can use the faster
add_document(). That is the case with the initial (re)indexing, when
start with an empty database.
Also a few smaller cleanups.
2023-07-25 23:56:19 +03:00
Dirk-Jan C. Binnema
4d8ba5f579
index/scanner: implement i-node sorting
...
On rotational devices (HDD) processing direntries is much faster when
doing so sorted by i-node for the dir-entries. This is an old
optimization (perhaps mu <= 1.6 or so?) that was implemented yet after
indexing changed, likely because my systems use SDDs instead!
But, let's restore that optimization; the sorting is fast enough that we
don't care for SDDs; on HDD it should be quite a bit faster.
2023-07-25 22:39:12 +03:00
Dirk-Jan C. Binnema
b795242d5a
message: use html-to-text scraper for html parts
...
We were dumping the HTML-parts as-is in the Xapian indexer; however,
it's better to remove the html decoration first, and just pass the text.
We use the new built-in html->text scraper for that.
2023-07-25 21:26:36 +03:00
Dirk-Jan C. Binnema
56b8fad89e
utils: implement html-to-text
...
Implement a crude html-to-text scraper function, to extract plain text
from html messages, so we can use it for indexing.
2023-07-25 21:26:36 +03:00
Dirk-Jan C. Binnema
23ba61a650
mu-find: internal cleanups / modernization
...
use fmt and Result-based APIs.
2023-07-25 21:26:01 +03:00
Dirk-Jan C. Binnema
11c807f955
utils/readline: use fmt-based apis
2023-07-25 21:26:01 +03:00
Dirk-Jan C. Binnema
9580d11fef
utils/result: add std::move version of Err
...
Avoid a copy in some situations
2023-07-25 21:26:01 +03:00
Dirk-Jan C. Binnema
dcf2298680
mu: use fmt-based apis in mu index/server and options
...
iostream is so 1998.
2023-07-25 21:11:56 +03:00
Dirk-Jan C. Binnema
85a2490300
mu-init: improve user output
2023-07-25 11:11:53 +03:00
Dirk-Jan C. Binnema
3337c9babb
mu-view: add --format=html
...
Support showing the HTML body (if any) instead of the default plain-text
body.
Update manpage.
2023-07-23 21:04:26 +03:00
Dirk-Jan C. Binnema
72f43f11df
lib: improve store error messages
...
Use xapian_try_result
2023-07-23 21:04:26 +03:00
Dirk-Jan C. Binnema
d374d94031
clang: avoid some build warnings
2023-07-23 21:04:26 +03:00
Dirk-Jan C. Binnema
7b38f094c4
migrate some more code to mu_format / join_paths
...
Let's modernize a bit.
2023-07-20 23:14:29 +03:00
Dirk-Jan C. Binnema
8c11f6f71f
Merge pull request #2522 from a3a3el/guile-mu-installation-fix
...
Install Guile extension into Guile's extension directory
2023-07-20 09:05:19 +03:00
Jeremy Sowden
d1b8b79aa6
Install Guile extension into Guile's extension directory
2023-07-19 23:39:59 +01:00
Dirk-Jan C. Binnema
b08fe636f3
man: update mu mkdir manpage
2023-07-19 08:48:57 +03:00
Dirk-Jan C. Binnema
ecb3c9139f
mu-mkdir: add unit tests
2023-07-19 08:48:44 +03:00
Dirk-Jan C. Binnema
e2de72e747
build: improve 'dist' target
...
Ensure we compile first.
2023-07-18 23:21:28 +03:00
Dirk-Jan C. Binnema
6ad5cccc53
store/index: and unit test for circular symlink
...
Check that we bail out early
2023-07-18 23:18:21 +03:00
Dirk-Jan C. Binnema
885903c496
index: limit length of maildir path to MaxTermLength
...
This limit was already in place, but now we detect it a bit earlier (in
the indexer). We _could_ increase it (by using hashes for dirstamps), but
right now it's a good catch for circular symlinks.
2023-07-18 23:18:21 +03:00
Dirk-Jan C. Binnema
f3c303106d
man: update mu-index manpage
2023-07-18 23:14:25 +03:00
Dirk-Jan C. Binnema
0cb78fe4d1
mu-remove: add unit test
2023-07-18 21:33:59 +03:00
Dirk-Jan C. Binnema
8b66491a72
mu-add: update unit test
2023-07-18 21:33:33 +03:00
Dirk-Jan C. Binnema
cf6c5a36d7
utils: rework running system commands
...
Use g_spawn and pass arguments, so we don't involve a shell that needs
escaping etc.
Improve error handling.
2023-07-18 20:19:27 +03:00
Dirk-Jan C. Binnema
5efd0a61aa
build: improve 'coverage' target
...
Ensure we compile everything first.
2023-07-18 19:08:16 +03:00
Dirk-Jan C. Binnema
e8462e0204
lib/index: add rudimentary scanner test
...
Make the defunct existing one a working test.
2023-07-18 19:08:16 +03:00