On 4/13/06, Matthew Dixon Cowles <[EMAIL PROTECTED]> wrote: > 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]>' > great this is what i needed, and for time i used formatdate()
One last question. Is there an easy way to covert body of an email into lines starting with ">" If I received in my payload(), body of an email: hello how are you I want to send a response with quoted part: hi >hello >how are you Is quote(str) a function that i would use? From description it seems as it only escapes backslashes and quotes. Thank you Lukasz > Regards, > Matt > > _______________________________________________ Email-SIG mailing list [email protected] Your options: http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com
