[Pymilter] uniqueID()

Kyle Oetken kmoetken at gmail.com
Sat Aug 13 18:44:17 EDT 2011


In the example code this section assigns a unique ID to the milter instance:

def __init__(self):  # A new instance with each new connection.
    self.id = Milter.uniqueID()  # Integer incremented with each call.

In my testing it appears that the Milter.uniqueID appears to assign an
ID to each specific tcp connection.   As a result, if multiple
messages are sent over that tcp connection each message will have the
same uniqueID.   Is there a good way to assign a unique ID to a
particular message within the tcp connection?

Thanks,

Kyle Oetken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gathman.org/pipermail/pymilter/attachments/20110813/a2686a0a/attachment.html>


More information about the Pymilter mailing list