[Python-bugs-list] [ python-Feature Requests-499529 ] email.Utils.msgid()
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 31 Jan 2002 19:32:23 -0800
Feature Requests item #499529, was opened at 2002-01-04 10:54
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=355470&aid=499529&group_id=5470
Category: Python Library
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Jason R. Mastaler (jasonrm)
>Assigned to: Barry Warsaw (bwarsaw)
Summary: email.Utils.msgid()
Initial Comment:
It seems the Python library does not
include a general method for creating an
rfc2822 compliant Message-ID string.
This would be useful for e-mail applications
that need to generate their own Message-IDs.
If you are interested in adding this method,
I can include a patch against Utils.py from the
email module. I've already implemented
this functionality in Python for one of my
applications. It produces Message-ID strings
that look like:
<20020104184922.4077.30184.tmda@ns.mastaler.com>
date + random integer + process id + a string @ FQDN
Let me know if you are interested, and also preference
on the name of the method (you may prefer something
other than msgid()).
----------------------------------------------------------------------
>Comment By: Barry Warsaw (bwarsaw)
Date: 2002-01-31 19:32
Message:
Logged In: YES
user_id=12800
+1
I'm going to close this report, so please add the patch to
the mimelib project (under the rfe you've already got open).
I think the function probably ought to be called
make_msgid() in Utils.py w/ let's say a single argument for
the string part. What should the default be? Hmm, I can't
think of anything, so I guess the empty string. I wonder if
we should have an optional arg to use something other than a
FQDN? Naw, let's keep this simple.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=355470&aid=499529&group_id=5470