Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/IMAP
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2020-07-13 14:48:38 +0300
committerGitHub <noreply@github.com>2020-07-13 14:48:38 +0300
commit2885af730d1bda267798c699166d65643f21e8ff (patch)
tree03ead4f57be0b4575e2f6c0958a407c617b89bee /lib/IMAP
parent700f28c98e3f38d0a748886046ea49105dc88c5d (diff)
parent4772760b1046c8ad4eef0faa0e7720eadd42e32a (diff)
Merge pull request #3357 from nextcloud/enhancement/threading-two-similar-threads
Do not combine threads with identical subjects
Diffstat (limited to 'lib/IMAP')
-rw-r--r--lib/IMAP/Threading/ThreadBuilder.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/IMAP/Threading/ThreadBuilder.php b/lib/IMAP/Threading/ThreadBuilder.php
index 97e787adb..72283423f 100644
--- a/lib/IMAP/Threading/ThreadBuilder.php
+++ b/lib/IMAP/Threading/ThreadBuilder.php
@@ -211,13 +211,12 @@ class ThreadBuilder {
&& $container->hasMessage() && $container->getMessage()->hasReSubject()) {
$container->setParent($subjectContainer);
$subjectTable[$subject];
- } else {
- $new = Container::empty();
- $container->setParent($new);
- $subjectContainer->setParent($new);
- $new->setParent($root);
- $subjectTable[$subject] = $new;
}
+ /*
+ * According to RFC5256 we would have to combine two messages with the same subject
+ * to a thread. But this will also group unrelated messages, so we deliberately omit
+ * this, just like most other clients do.
+ */
}
}