aboutsummaryrefslogtreecommitdiffstats
path: root/worker/maildir
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-06-10 12:57:36 +0200
committerRobin Jarry <robin@jarry.cc>2024-06-25 15:28:11 +0200
commit4e920d1def515f2c6d7da5168e39fd89fb200f63 (patch)
tree0eb1ff1a5827d5035246561479f0c233e24de32d /worker/maildir
parent7f66297c521fca8f9bc17280f0a96874598bde96 (diff)
downloadaerc-4e920d1def515f2c6d7da5168e39fd89fb200f63.tar.gz
threadbuilder: allow threading by subject
If no match were found in the References and In-Reply-To headers, allow threading by looking at subjects. This behaviour is disabled by default. Add a setting to enable it. Changelog-added: Allow fallback to threading by subject with `[ui].threading-by-subject`. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Matěj Cepl <mcepl@cepl.eu>
Diffstat (limited to 'worker/maildir')
-rw-r--r--worker/maildir/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index f5d3a8e1..c733ddc6 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -575,7 +575,7 @@ func (w *Worker) handleFetchDirectoryThreaded(
func (w *Worker) threads(ctx context.Context, uids []uint32,
criteria []*types.SortCriterion,
) ([]*types.Thread, error) {
- builder := aercLib.NewThreadBuilder(iterator.NewFactory(false))
+ builder := aercLib.NewThreadBuilder(iterator.NewFactory(false), false)
msgInfos := make([]*models.MessageInfo, 0, len(uids))
mu := sync.Mutex{}
wg := sync.WaitGroup{}