[Sorry, originally sent this reply directly]

Dear Lukasz,

> Is message id generated by sending server or receiving server?

It's intended to be created by the program that sends the mail, but
it's technically optional. The details are at:

http://www.faqs.org/rfcs/rfc2822.html

If the sending program doesn't create a Message-ID header, one will
likely be added by some intermediate server.

> I could create a time stamp, but not sure about message id.

Python's email module has a convenience function to create one that
should be sufficient. It's documented at:

http://docs.python.org/lib/module-email.Utils.html

For example:

>>> import email.Utils
>>> email.Utils.make_msgid()
'<[EMAIL PROTECTED]>'

Regards,
Matt

_______________________________________________
Email-SIG mailing list
[email protected]
Your options: 
http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com

Reply via email to