Use List-Id for threading

This commit is contained in:
M66B
2020-04-29 10:27:42 +02:00
parent 18bac3f90e
commit bbc550ef1d

View File

@@ -785,6 +785,11 @@ public class MessageHelper {
String[] getReferences() throws MessagingException {
List<String> result = new ArrayList<>();
String listId = imessage.getHeader("List-Id", null);
if (!TextUtils.isEmpty(listId))
result.add(listId);
String refs = imessage.getHeader("References", null);
if (refs != null)
result.addAll(Arrays.asList(getReferences(refs)));