| Age | Commit message (Collapse) | Author |
|
The "expected-to-fail" test actually passes when root.
|
|
- don't make assumptions on where programs live (i.e., /bin/sh, /bin/rm,
/bin/mv) are not universal
- dont invoke shell when unnecessary
- improve error-handling
|
|
Seems some systems are quite slow, so bump the time-out.
Fixes #2886.
|
|
Ensure removal affects the labels cache.
|
|
Ensure the cached message sexp gets updated in all cases where it's necessary.
|
|
Build the tests lazily, i.e., not before `meson test`. This helps with
build-times.
|
|
|
|
The 'circular-symlink' test.
|
|
Work-around some weirdness. No energy to do a root-cause analysis ;)
Fixes #2832.
|
|
Some message can have an _empty_ message-id, e.g. with:
In-Reply-To: <>
which we weren't filter out.
This would yield and _empty_ Thread-Id, in mu-message.cc
And this would make mu-query believe it had no matches in the first
query, in Query::Private::run_related, and effectively throw away the
results. (Xapian using empty string both for a "not found" result, and
"found an empty string doesn't help either).
So, avoid having an empty reference. Also add a unit-test.
Fixes #2812.
|
|
Test the interaction between related/new/skipped-duplicates. Seems to
work as expected.
|
|
Add a new combination (pseudo) field "related:", which combines
"message-id" and "references"
|
|
|
|
Single-threaded is the build-default, and seems to work well enough for
1.12.7, so remove the option to turn it off.
This is because build-options that influence such low-level/core
behavior are a pain to maintain.
|
|
Fixes #2745
|
|
Double-check the changed values are seen in a newly opened store.
|
|
just to check if it works at all; no need to check cld2 at all.
|
|
While not recommended, sometimes it can be useful to disable building
the unit tests. This can be done now with
meson -Dtests=disabled build
|
|
Instead of handling transactions in the store, handle it in xapian-db.
Make the code a bit more natural / cleaner-out
Handle transaction automatically (with a batch-size) and add some RAII
Transaction object, which makes all database interaction transactable
for the duration. So, no more need for explicit parameters to
add_message while indexing.
|
|
|
|
And get some more info from run_command.
|
|
|
|
Add sub-command to move messages; add tests and docs.
Fixes #157
|
|
|
|
Do the "phrasification" for matching fields later during query parsing;
this allows for handling combination fields correctly.
Also match both the normal term and the "phrase term", so we catch more
cases. Update/extend unit tests.
This fixes the "kata-container" issue also for body test.
Fixes #2167.
|
|
|
|
and add a new one for the indexer
|
|
Use TempDir, join_paths etc.
|
|
simplify things a bit
|
|
|
|
Implement a new query parser; the results should be very similar to the
old one, but it adds an Sexp middle-representation, so users can see how
a query is interpreted.
|
|
|
|
Use the new fmt-based formatting.
|
|
Update test cases as well.
|
|
Add some useful make targets, and separate (optimized) build.
|
|
*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.
|
|
Check that we bail out early
|
|
Other code depends on that.
|
|
Not complete, but a first big stab converting users of Mu::Error and
various g_warning & friends, format to the new libfmt-based APIs.
|
|
Use the new & improved APIs.
|
|
With the new Sexp. And expand unit tests.
|
|
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.
|
|
It was getting old...
Remove the unused parts, refactor the few parts still in use.
|
|
The former is PCRE-compatible, and faster than std::regex.
|
|
We were _replacing_ the flags (such as Duplicate), but we should add to
them instead.
Add a unit-test for this.
|
|
|
|
Test the new functionality
|
|
For checking issue #2365.
|
|
And use improved cached_sexp api (automatically handled with
mu-document now)
|
|
|