Dirk-Jan C. Binnema
8e334bcd8f
Merge branch 'wip/store-move-dups'
2022-12-08 19:34:30 +02:00
Dirk-Jan C. Binnema
d5fb15574b
mu-query-match-decider: add 'Related' to flags
...
We were _replacing_ the flags (such as Duplicate), but we should add to
them instead.
Add a unit-test for this.
2022-12-08 19:33:15 +02:00
Dirk-Jan C. Binnema
ca05c82451
query-threads: add multi-dup unit test
2022-12-08 19:30:20 +02:00
Dirk-Jan C. Binnema
b71751a185
mu-server: update for move_message API update
2022-12-07 18:22:29 +02:00
Dirk-Jan C. Binnema
da7c3b0c9a
tests: update for move_message API update
2022-12-07 18:22:29 +02:00
Dirk-Jan C. Binnema
0b516c18c2
store: add mu_move_message dup flag test
...
Test the new functionality
2022-12-07 18:22:29 +02:00
Dirk-Jan C. Binnema
87c3ceb7b1
store: update move_message API
...
Update the move_message API so to allow for updating duplicate messages
too (not implemented yet), and return all updated messages.
2022-12-07 18:22:29 +02:00
Dirk-Jan C. Binnema
62cfc88950
flags: add flags_keep_unmutable + test
...
When moving we want to maintain _some_ flags; add a function making that
convenient.
2022-12-07 12:32:13 +02:00
Dirk-Jan C. Binnema
c856c750f5
mu4e-headers: fix mu4e-headers-toggle-setting
2022-12-05 23:57:18 +02:00
Dirk-Jan C. Binnema
9ce5a22275
Merge pull request #2371 from vermiculus/sa/copy-link-at-point
...
Teach mu4e-copy-thing-at-point about SHR links
2022-11-30 23:35:49 +02:00
Sean Allred
93f3a2da35
Teach mu4e-copy-thing-at-point about SHR links
...
This allows one to copy the link behind a link-widget instead of using
RET to open it.
2022-11-28 04:54:18 -06:00
Sean Allred
3375a95f24
Whitespace fix
...
Allow aggressive-indent-mode to do its thing.
2022-11-28 04:53:53 -06: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
d2a3a13242
query/test: add term splitting unit test
...
For checking issue #2365 .
2022-11-20 10:18:01 +02:00
Daniel Colascione
26b3110b8f
Avoid word-splitting regular expression matches
...
Previously, we would conduct regular expression searches by
enumerating all values of a given term, manually regex-matching each
one against our search regular expression, remember all the term
values that matched our regular expression, then do a big Xapian
OR-query that matched any of those term values. In constructing this
OR-query, however, we would split each term value on space and add a
separate Xapian phrase search term for each resulting word. This
approach worked fine most of the time, beacuse when we index a term,
we index both each word in a term and the whole term by itself.
This word splitting produced false negatives in some matches, however,
because Xapian and the Mu-level word splitting code do word splitting
slightly differently and apply different transformations to the text
while splitting. (For example, Xapian transforms fancy Unicode
apostrophes to ASCII apostrophes.)
This patch avoids the problem by not word splitting when constructing
the big Xapian OR-query for finding the results of regular
expression matching.
2022-11-20 10:18:01 +02:00
Dirk-Jan C. Binnema
50489fe6bb
Merge pull request #2356 from axeoman/fix-view-in-xwidget
...
mu4e: temporary reset browse-url-handlers in view in xwidget action
2022-11-19 18:36:49 +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
6ea6e35dc6
build: bump version to 1.9.3, update NEWS.org
2022-11-17 11:00:06 +02:00
Dirk-Jan C. Binnema
02188ecbb5
mu4e: improve server comms with mu
2022-11-17 11:00:06 +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
27a474be41
thirdparty: include CLI11
...
Add the CLI11 library so we can use it.
2022-11-17 11:00:06 +02:00
Dirk-Jan C. Binnema
46c741ec9a
guile: update scripts
...
Some minor improvements to the existing scripts
2022-11-17 11:00:06 +02:00
Dirk-Jan C. Binnema
e02df6c786
guile: move msgs-per-* scripts into histogram.scm
2022-11-17 11:00:06 +02:00
Dirk-Jan C. Binnema
fc899c0962
guile: update for removing runtime
2022-11-17 11:00:06 +02:00
Dirk-Jan C. Binnema
64f08149bc
lib: remove mu-runtime
...
Remove runtime; update the logger for that, and move the runtime-paths
stuff to utils.
2022-11-16 23:31:51 +02:00
Dirk-Jan C. Binnema
b0fad6d763
mu4e-update: no need to confirm killing buffer
...
Fixes issue #2362 .
2022-11-14 22:19:31 +02:00
Dirk-Jan C. Binnema
ed08118652
utils/command-handler: fix symbol-arg copy-pasta
...
Fixes #2361 .
2022-11-13 15:03:07 +02:00
Dirk-Jan C. Binnema
aa6fd3e757
utils/mu-utils-format: add missing includes
2022-11-12 08:30:46 +02:00
Dirk-Jan C. Binnema
37121e94a3
build: bump version to 1.9.2
2022-11-07 18:40:20 +02:00
Dirk-Jan C. Binnema
be86963882
Merge branch 'wip/djcb/new-sexp'
2022-11-07 18:39:24 +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
a417b38624
store: update for new sexp api
...
And use improved cached_sexp api (automatically handled with
mu-document now)
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema
e1dd6f10b1
server: rework for updated Sexp/CommandHandler
...
Rework for the new APIs.
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema
58176f8438
message: updates for new sexp
...
Update for API changes.
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema
dbd3c1309a
command-handler: rework for new sexp
...
Rework / cleanup the command-handler (and rename for command-parser).
Update tests (and integrate with sources)
2022-11-07 18:38:03 +02:00
Dirk-Jan C. Binnema
dfc2cb12d7
sexp: major rework / API improvements
...
Use a bit nicer/modern c++, since we're using C++17 now. Add more tests.
2022-11-07 18:37:23 +02:00
Dirk-Jan C. Binnema
6064c2e88b
test-mu-store-query: make move/refresh test more rigorous
2022-11-01 18:41:10 +02:00
Dirk-Jan C. Binnema
db0d51d630
server: improve error messages
2022-11-01 18:37:31 +02:00
Dirk-Jan C. Binnema
cb4e893f3a
mu-error: add missing string include
2022-10-30 15:51:03 +02:00
Dirk-Jan C. Binnema
83eceaf580
test-mu-store-query: make move/refresh test more rigorous
2022-10-30 11:39:33 +02:00
Dirk-Jan C. Binnema
0055b40a8d
mu-maildir: improve error handling / reporting
2022-10-30 11:27:54 +02:00
Aleksei Atavin
0f097e00c6
mu4e: temporary reset browse-url-handlers in view in xwidget action
...
If `browse-url-handlers` is set `mu4e-action-view-in-xwidget` function
tries to open url in the handler first instead of xwidget. This is
happening because `browse-url` first checks `browse-url-handlers` and
`browse-url-browser-function` after.
Signed-off-by: Aleksei Atavin <axeoman@gmail.com>
2022-10-28 22:52:16 +03:00
Dirk-Jan C. Binnema
06be7a24e7
test-mu-store-query: add unit test for dup message
...
For ticket #2327 . Haven't been able to reproduce though.
2022-10-26 22:35:34 +03:00
Dirk-Jan C. Binnema
27a85eada2
store: fix move ctor
...
indexer_ is holding a ptr to the _old_ store; clear it so it gets
regenerated.
2022-10-26 21:51:53 +03:00
Daniel Colascione
f0bba8e1fa
message: use fake Message-ID when empty
...
Previously, mu generated a fake message ID for messages without a
Message-ID header. This fake message ID allows these messages to show in
an --include-related query. However, if a message contained a Message-ID
header with the value equal to the empty string, we did not generate a
fake message ID in the index, and consequently, these messages failed to
appear in an --include-related query. This change uses a fake message ID
when the Message-ID header is absent _or_ empty.
2022-10-24 23:14:17 +03:00