------------------------------------------------------------
revno: 1062
committer: Mark Sapiro <[email protected]>
branch nick: 2.2
timestamp: Sat 2009-08-01 12:07:24 -0700
message:
  Fixed a bug that could cause incorrect threading of replies to archived
  messages that arrive with timestamps in the same second.
modified:
  Mailman/Archiver/pipermail.py
  NEWS


--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2

Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription.
=== modified file 'Mailman/Archiver/pipermail.py'
--- Mailman/Archiver/pipermail.py	2006-01-29 05:12:26 +0000
+++ Mailman/Archiver/pipermail.py	2009-08-01 19:07:24 +0000
@@ -122,9 +122,10 @@
         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 @@
                 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 @@
             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)

=== modified file 'NEWS'
--- NEWS	2009-07-31 22:33:01 +0000
+++ NEWS	2009-08-01 19:07:24 +0000
@@ -72,6 +72,9 @@
 
   Bug Fixes and other patches
 
+    - Fixed a bug that could cause incorrect threading of replies to archived
+      messages that arrive with timestamps in the same second.
+
     - Scrubbed HTML attachments containing tab characters would get the tabs
       replaced by a string of '&nbsp' without a semicolon.  Fixed.
 

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to