Update of /cvsroot/tmda/tmda/bin
In directory usw-pr-cvs1:/tmp/cvs-serv24368/bin

Modified Files:
        ChangeLog tmda-inject 
Log Message:
Utilize email.Utils.formatdate() and email.Utils.formataddr() rather
than our own equivalent functions.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/ChangeLog,v
retrieving revision 1.228
retrieving revision 1.229
diff -u -r1.228 -r1.229
--- ChangeLog   11 Sep 2002 22:35:59 -0000      1.228
+++ ChangeLog   13 Sep 2002 00:22:36 -0000      1.229
@@ -1,3 +1,7 @@
+2002-09-12  Jason R. Mastaler  <[EMAIL PROTECTED]>
+
+       * tmda-inject (message_format): Utilize email.Utils.formataddr().
+
 2002-09-11  Jason R. Mastaler  <[EMAIL PROTECTED]>
 
        * tmda-*: Prepend prefix/site-packages/TMDA/pythonlib if the

Index: tmda-inject
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-inject,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -r1.67 -r1.68
--- tmda-inject 11 Sep 2002 22:35:59 -0000      1.67
+++ tmda-inject 13 Sep 2002 00:22:36 -0000      1.68
@@ -125,6 +125,7 @@
 from TMDA import Util
 
 
+import email
 import rfc822
 import string
 
@@ -145,9 +146,9 @@
 def message_format(fsa, ffn, type):
     # "angles" is the default MESSAGE_FROM_STYLE
     if type == 'address':
-        return Util.formataddr((None, fsa))
+        return email.Utils.formataddr((None, fsa))
     else:
-        return Util.formataddr((ffn, fsa))
+        return email.Utils.formataddr((ffn, fsa))
 
 def make_field(cookie_type, cookie_option, from_address, to_address):
     """

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs

Reply via email to