email Message-ID: What is a good algorithm to create this?

Steve Purcell stephen_purcell at yahoo.com
Mon Apr 2 03:17:58 EDT 2001


Sheila King wrote:
> What is a good way for my script to generate Message-IDs? I know it usually
> has something to do with random numbers or strings, but I thought I would get
> some advice on how to do this, first, before blindly proceeding. A description
> of a general algorithm would be fine. Pointers to online resources describing
> such are also very welcome.

Try using strings returned by mimetools.choose_boundary(), or steal that
code for your own purposes. I think it should be sufficiently unique.

-Steve

-- 
Steve Purcell, Pythangelist
Get testing at http://pyunit.sourceforge.net/
Any opinions expressed herein are my own and not necessarily those of Yahoo




More information about the Python-list mailing list