On Wed, 20 Feb 2002, Neil Parker wrote:

> 
> If you're on an Internet-connected machine, start with the fully-qualified
> domain name.  Then you only need to make the rest unique within your
> machine, which can often be done by using the current time stamp and
> process ID.  If you need to have a single process be able generate several
> CIDs within less than 1 second, append a serial number (which need only be
> unique within the process).
>
I found a function in the python standard library that does almost the
same thing. It's intended for boundary markers in multipart/mixed messages

>>> import mimetools
>>> a = mimetools.choose_boundary()
>>> a
'66.178.134.147.1000.3821.1014250166.859.5029'
>>> 

but should work OK for message id's, Content-ID's etc.

Right now it's a lot of fiddling around with headers, encodings ,mmm fun

I guess, the lesson I pull from this is USE the libs Luke. 

http://www.efn.org/~laprice        ( Community, Cooperation, Consensus
http://www.opn.org                 ( Openness to serendipity, make mistakes
http://www.efn.org/~laprice/poems  ( but learn from them.(carpe fructus ludi)

Reply via email to