Update of /cvsroot/tmda/tmda/contrib/cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv31634
Modified Files:
Pending.py
Log Message:
Eased restrictions so that malformed dates in an e-mail will not cause an
error.
Index: Pending.py
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/cgi/Pending.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Pending.py 14 Dec 2002 01:30:34 -0000 1.8
+++ Pending.py 2 Jan 2003 21:59:37 -0000 1.9
@@ -229,7 +229,7 @@
# Find preferred date
try:
Temp = \
-re.compile("\d+ [a-zA-Z]+ \d{4} \d+:\d\d:\d\d").search(MsgObj.msgobj.get("date"))
+re.compile("\d+ [a-zA-Z]+ \d+ \d+:\d\d:\d\d").search(MsgObj.msgobj.get("date"))
Date = time.strptime(Temp.group(), "%d %b %Y %H:%M:%S")
Date = time.strftime(Defaults.CGI_DATE_FORMAT, Date)
except TypeError:
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs