Update of /cvsroot/tmda/tmda/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv6966/bin
Modified Files:
tmda-ofmipd
Log Message:
Bugfix. We can't use Util.make_date() when running tmda-ofmipd
in "global" mode, because make_date() imports Defaults, which
looks for files in ~root/.tmda/.
Index: tmda-ofmipd
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-ofmipd,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- tmda-ofmipd 6 Mar 2003 07:26:40 -0000 1.30
+++ tmda-ofmipd 25 Mar 2003 23:08:41 -0000 1.31
@@ -344,6 +344,7 @@
import asynchat
import asyncore
import base64
+import email.Utils
import hmac
import md5
import popen2
@@ -871,7 +872,7 @@
else:
rh.append('(%s)' % (self.__peerip))
rh.append('by %s (tmda-ofmipd) with ESMTP;' % (self.__fqdn))
- rh.append(Util.make_date())
+ rh.append(email.Utils.formatdate(localtime=1))
os.environ['TMDA_OFMIPD_RECEIVED'] = ' '.join(rh)
def smtp_NOOP(self, arg):
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs