From 4e920d1def515f2c6d7da5168e39fd89fb200f63 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Mon, 10 Jun 2024 12:57:36 +0200 Subject: threadbuilder: allow threading by subject MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Matěj Cepl --- worker/maildir/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'worker') 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{} -- cgit