[Nym3-commit] r257 - trunk/nym3/Server

jr at conuropsis.org jr at conuropsis.org
Thu May 12 01:40:22 CEST 2005


Author: jr
Date: 2005-05-12 01:40:21 +0200 (Thu, 12 May 2005)
New Revision: 257

Modified:
   trunk/nym3/Server/User.py
Log:
add the synopses sequence number processing in Server.User


Modified: trunk/nym3/Server/User.py
===================================================================
--- trunk/nym3/Server/User.py	2005-05-11 22:47:13 UTC (rev 256)
+++ trunk/nym3/Server/User.py	2005-05-11 23:40:21 UTC (rev 257)
@@ -98,6 +98,7 @@
 	    self.data['username'] = username
     	    self.data['received'] = []
 	    self.data['nSurbs'] = 0
+	    self.data['seqNo'] = 0
 
     def __del__(self):
 	"""Flush the information contained in this User to the disk
@@ -417,7 +418,8 @@
         
     def store(self, msg):
 	"Stores an incoming message"
-	syn = Mail.synopsize(msg)
+	syn = Mail.synopsize(msg, self.data['seqNo'])
+	self.data['seqNo'] += 1
 	# Store the mail.
 	self.load_mbox()
 	self.load_index()



More information about the Nym3-commit mailing list