Dirk-Jan C. Binnema
b465c1f779
index: make lazy check less lazy
...
We got many reports where the 'lazy check' didn't work too well for
people... so make it a bit less lazy, so it'll just work for more
people.
In practice, never skip _directories_ unless they're leaf directories;
this avoids the mtime-does-not-bubble-up problem.
2021-08-12 17:56:00 +03:00
Dirk-Jan C. Binnema
ab51f1553b
thread-subject: make even laxer:
...
compare subject from the *last* plus any spaces.
2021-08-11 22:24:28 +03:00
Dirk-Jan C. Binnema
9a31225ef4
thread-subject: ignore '<prefix>:' when comparing
...
Should catch most cases.
Fixes : #2083 .
2021-08-11 15:16:54 +03:00
Dirk-Jan C. Binnema
b7844358d2
threads: recurse thread-subject check
...
Not only check for duplicate subjects in *siblings*, also recurse into
the children. This remove some clutter from deeply nested threads.
Fixes : #2078 .
2021-08-10 22:10:39 +03:00
Dirk-Jan C. Binnema
16a2cffc11
utils: use _GNU_SOURCE for S_ISLINK on freebsd
...
Unbreak FreeBSD build.
Fixes : #2079 .
2021-08-08 15:15:51 +03:00
Dirk-Jan C. Binnema
e52683f0ed
server: when marking-as-read, include duplicates
...
When marking a message a read, do the same for the duplicates; this
was the old behavior and the intention of the new behavior but didn't
quite work.
Fixes : #2071 .
2021-08-04 23:55:41 +03:00
Dirk-Jan C. Binnema
e26767b842
mu-server: mark _all_ messages with message-id as read
...
Not just the one we're viewing.
2021-08-03 22:17:56 +03:00
Dirk-Jan C. Binnema
78ef8ddcbb
mu-store: fix warning schema mismatch message
...
Fixes : #2069 .
2021-07-31 17:54:33 +03:00
Dirk-Jan C. Binnema
fd9cc6bcc4
mu-store: improve database schema error
...
Tell user they should mu-init
2021-07-31 01:47:21 +03:00
Dirk-Jan C. Binnema
34fae2c072
mu-store: update whitespace
2021-07-31 01:45:22 +03:00
Dirk-Jan C. Binnema
1998505679
index: update removed value in progress report
...
Fixes : #2016
2021-07-29 23:26:40 +03:00
Dirk-Jan C. Binnema
c8a2151cb9
mu: use g_strerror instead of strerror
...
Some #includes were missing for the latter (but only noticeable on some
systems - e.g., build breaks on Cygwin).
So let's replace with something that works equally everywhere.
Fixes : #2060
2021-07-29 00:02:30 +03:00
Dirk-Jan C. Binnema
7fa80f77e9
index: don't assume very fast machine cfg drive
...
The scanner had a timeout for scanning, which doesn't work too well with
machine with rel. fast disks / rel. slow machines. Which I don't happen
to have!
Let's remove the timeout, should help with getting unwanted timeouts
which would cut short the indexing.
2021-07-28 17:04:39 +03:00
Nicolas Avrutin
ee4bf5664a
query: fix include-related.
...
mu-query.cc:
- make_related_enquire: don't include first query in qvec, we already have all
thread IDs we need to query in thread_ds.
- run_related: always sort first query by date, explained by the comment.
- run_related: include qflags (in particular ascending vs descending) in
leader_qflags.
- run_theaded: don't limit results to maxnum, that results in threads
potentially being cut off.
mu-server.cc:
- output_sexp: don't limit results to maxnum so as to match the behaviour of
mu find (and avoid cuttong off threads).
Fixes #1924 and #1911 .
2021-07-11 16:23:39 -04:00
Dirk-Jan C. Binnema
619509eb56
query-results: remove GatherThreadIds
...
We can't really do that in the match-decider, since we get _all_ messages
there, not the <n>-limited.
And some whitespace changes.
2021-06-17 20:54:59 +03:00
Dirk-Jan C. Binnema
6caa9acb34
query-match-deciders: whitespace
2021-06-17 20:54:59 +03:00
Dirk-Jan C. Binnema
047c10453a
query: gather related ids from mset, not match-decider
...
Since we only want the (smaller) set from the mset, not the (full) set
that the match-decider sees.
2021-06-04 00:54:28 +03:00
Dirk-Jan C. Binnema
473d3998ce
mu: calculate thread subjects
...
Calculate the thread subject, that is, the subject of the (sub)thread _or_
empty if it's the same as the previous subject.
This is for the UI feature of _not_ showing the subject when it's just
repeating from the previous.
2021-05-04 17:34:47 +03:00
Dirk-Jan C. Binnema
8c9430a09a
query: improve thread-date handling
...
And make it available in query_match, so we can expose it to elisp.
2021-05-02 23:30:32 +03:00
Dirk-Jan C. Binnema
bed6058fdc
mu-server: add thread-date as emacs timestamp
...
So we can more easily deal with it from elisp.
2021-05-02 23:30:32 +03:00
Dirk-Jan C. Binnema
b8f8ffa967
mu-sexp: make lists printable
...
And some typo fixes
2021-05-02 23:30:32 +03:00
Dirk-Jan C. Binnema
38f7075daa
mu-server: use orphan, not empty-parent
...
So we use only one term.
2021-05-02 23:30:32 +03:00
Nicolas Avrutin
8ccd8f5425
threads: fix flag handling of orphan children
...
Even if a container has no query_match, it may still have children that need to
have flags applied.
This was broken by 6ff9829ce1
.
Fixes : #1995
2021-05-02 14:27:11 -04:00
Derek Zhou
dc6f76d74d
seperate Mu::format and Mu::vformat
2021-04-22 18:32:38 +00:00
Dirk-Jan C. Binnema
750a9d1626
query: Better debug logging
2021-03-17 18:33:45 +02:00
Dirk-Jan C. Binnema
08890dee2d
lib/sexp: Clean up contact name/email
...
Don't allow control characters.
Fixes : #1944 .
2021-03-16 17:10:35 +02:00
Dirk-Jan C. Binnema
f56aca7c23
lib/contacts: Use remove_ctrl
...
Use the new helper function rather than `wash'.
2021-03-16 17:09:37 +02:00
Dirk-Jan C. Binnema
15aca5e396
utils: cleanup whitespace
2021-03-16 17:07:39 +02:00
Dirk-Jan C. Binnema
725826231f
utils: Add remove_ctrl
...
Add a helper function to remove control characters / multi-spaces, and a
test.
2021-03-16 16:51:01 +02:00
Dirk-Jan C. Binnema
6e9a60c385
mu: fix some compiler warnings
...
and whitespace.
2021-03-12 22:20:48 +02:00
Dirk-Jan C. Binnema
98abcf8e84
store: support in-memory database
...
For testing, this is faster / and doesn't pollute the file system.
2021-02-16 19:32:15 +02:00
Dirk-Jan C. Binnema
98a742e5e5
query: honor maxnum in threaded searches
2021-02-15 22:45:33 +02:00
Dirk-Jan C. Binnema
45655da948
mu-msg-file: calculate sha1 for messages
...
And use this to generate a message-id for messages that do not have one.
2021-02-15 22:29:38 +02:00
Dirk-Jan C. Binnema
108a33f16e
query: avoid expected warning
...
Remove some debug leftover.
2021-02-15 21:43:47 +02:00
Dirk-Jan C. Binnema
579f841bdd
query: filter out docs without query-matches
...
This avoid including unwanted messages in threaded results.
Also some cleanups.
2021-02-15 19:11:22 +02:00
Dirk-Jan C. Binnema
bba8af8d51
mu-query: tweaks threaded/threaded querying
2021-02-13 00:48:07 +02:00
Dirk-Jan C. Binnema
50511a7460
mu-query: update deciders (avoid warning)
...
Don't report non-warning.
2021-02-12 23:48:02 +02:00
Dirk-Jan C. Binnema
ffc809a01e
query: improve thread-key-maker
...
For threading, we still get the _full_ set of messages (since the mset is
limited, but not the enquire); so no need to warn about docids we
haven't seen before.
Also, ensure the unwanted docids are sorted after the wanted ones.
Fixes : #1926 .
2021-02-12 19:14:37 +02:00
Dirk-Jan C. Binnema
7a70942e67
build: experimental support for the meson build system
2021-02-12 00:49:35 +02:00
Dirk-Jan C. Binnema
a3c6e74869
lib: replace some #define with constexpr
...
minor cleanup.
2021-02-11 18:54:25 +02:00
Dirk-Jan C. Binnema
936fd3f485
mu-query: sort "related" input by date
...
When doing 'related' searches, sort the initial (bounded) query results
by date, so we get the newest (or oldest)
2021-02-10 22:04:42 +02:00
Dirk-Jan C. Binnema
6ff9829ce1
lib: improve threaded sorting
...
Improve threaded sorting:
- rework the recursive algo (which should a crash noted earlier)
- sort by thread key (as in 1.5.7)
Fixes : #1923
Fixes : #1922
Fixes : #1911
Fixes : #1916
2021-02-10 12:35:19 +02:00
Dirk-Jan C. Binnema
ba895bc65e
mu-query-result: detect thread-subjects
...
Ongoing... try to determine the thread-subject, to be used in mu4e
later.
2021-01-29 22:44:45 +02:00
Dirk-Jan C. Binnema
fdcbc5257d
query-match-deciders: mark as leader / related
...
So we can use that as metadata later
2021-01-29 22:41:59 +02:00
Dirk-Jan C. Binnema
ad86e2c4fc
mu-contacts: cosmetic
2021-01-29 22:41:12 +02:00
Dirk-Jan C. Binnema
72fdfec3eb
lib: clean up mu_msg_to_sexp API
...
move out the QueryMatch
2021-01-29 22:39:21 +02:00
Dirk-Jan C. Binnema
e5a52e45fd
mu-threads: improve sorting, duplicate handling
...
And add some more tests.
2021-01-27 22:28:58 +02:00
Dirk-Jan C. Binnema
7f70149c95
threads: don't assert on remove_child
...
Investigate this, seems to hit in the wild.
2021-01-25 21:44:02 +02:00
Dirk-Jan C. Binnema
3e64fdfb0f
threads: avoid assert
...
The assert failure was spotted in the wild... we need to investigate,
but we can ignore it now to avoid SIGABRT.
2021-01-25 18:11:50 +02:00
Dirk-Jan C. Binnema
086999c2d1
query: in related/threaded mode, search all
...
In the related query, search _all_ messages, not just the amount asked;
this increases the chance of full threads.
2021-01-25 10:12:48 +02:00