Files
inwit e86a33efdf jwz: fix nil dereference when threading maildir messages
pruneEmptyContainers recurses into a container's children (case 3) but
never re-checks the container afterwards. If the container is
a placeholder (threadable == nil) and the recursion clears all its
children, it becomes an empty node that remains in the root set.
gatherSubjects then crashes accessing c.child.threadable.

Fix by checking after the recursive call: if the container now has no
threadable and no children, remove it from the parent's list using the
same pattern as case 1.

Fixes: https://todo.sr.ht/~rjarry/aerc/353
Changelog-fixed: Crash when threading maildir messages with references
 that create empty dummy containers in the root set.
Reported-by: Robert Vojta <rovojta@gmail.com>
Signed-off-by: inwit <inwit@sindominio.net>
Acked-by: Robin Jarry <robin@jarry.cc>
2026-07-26 14:30:17 +02:00
..
2025-08-28 09:28:16 +02:00
2025-08-28 09:28:16 +02:00
2025-08-28 09:28:16 +02:00
2025-08-28 09:28:16 +02:00