(idstring=None, domain=None)
return msgid
Returns a string suitable for RFC 2822 compliant Message-ID, e.g:

    <142480216486.20800.16526388040877946887@nightshade.la.mastaler.com>

    Optional idstring if given is a string used to strengthen the
    uniqueness of the message id.  Optional domain if given provides the
    portion of the message id after the '@'.  It defaults to the locally
    defined hostname.
Returns a string suitable for RFC 2822 compliant Message-ID, e.g:
Returns a string suitable for RFC 2822 compliant Message - ID e . g :
def make_msgid(idstring=None, domain=None):
    """Returns a string suitable for RFC 2822 compliant Message-ID, e.g:

    <142480216486.20800.16526388040877946887@nightshade.la.mastaler.com>

    Optional idstring if given is a string used to strengthen the
    uniqueness of the message id.  Optional domain if given provides the
    portion of the message id after the '@'.  It defaults to the locally
    defined hostname.
    """
    timeval = int(time.time()*100)
    pid = os.getpid()
    randint = random.getrandbits(64)
    if idstring is None:
        idstring = ''
    else:
        idstring = '.' + idstring
    if domain is None:
        domain = socket.getfqdn()
    msgid = '<%d.%d.%d%s@%s>' % (timeval, pid, randint, idstring, domain)
    return msgid
def make_msgid ( idstring = None , domain = None ) : timeval = int ( time . time ( ) * 100 ) pid = os . getpid ( ) randint = random . getrandbits ( 64 ) if idstring is None : idstring = '' else : idstring = '.' + idstring if domain is None : domain = socket . getfqdn ( ) msgid = '<%d.%d.%d%s@%s>' % ( timeval , pid , randint , idstring , domain ) return msgid