diff options
Diffstat (limited to 'Mailman')
-rw-r--r-- | Mailman/Archiver/pipermail.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Mailman/Archiver/pipermail.py b/Mailman/Archiver/pipermail.py index 49de805b..cfa4301e 100644 --- a/Mailman/Archiver/pipermail.py +++ b/Mailman/Archiver/pipermail.py @@ -122,9 +122,10 @@ class Database(DatabaseInterface): parentID = article.parentID if parentID is not None and self.articleIndex.has_key(parentID): parent = self.getArticle(archive, parentID) - myThreadKey = parent.threadKey + article.date + '-' + myThreadKey = (parent.threadKey + article.date + '.' + + str(article.sequence) + '-') else: - myThreadKey = article.date + '-' + myThreadKey = article.date + '.' + str(article.sequence) + '-' article.threadKey = myThreadKey key = myThreadKey, article.msgid self.setThreadKey(archive, key, article.msgid) @@ -418,7 +419,8 @@ class T: else: parent = self.database.getArticle(self.archive, article.parentID) - article.threadKey = parent.threadKey+article.date+'-' + article.threadKey = (parent.threadKey + article.date + '.' + + str(article.sequence) + '-') self.database.setThreadKey(self.archive, (article.threadKey, article.msgid), msgid) @@ -632,9 +634,11 @@ class T: article.parentID = parentID = self.get_parent_info(arch, article) if parentID: parent = self.database.getArticle(arch, parentID) - article.threadKey = parent.threadKey + article.date + '-' + article.threadKey = (parent.threadKey + article.date + '.' + + str(article.sequence) + '-') else: - article.threadKey = article.date + '-' + article.threadKey = (article.date + '.' + + str(article.sequence) + '-') key = article.threadKey, article.msgid self.database.setThreadKey(arch, key, article.msgid) |