CVS: tmda/bin ChangeLog, 1.287, 1.288 tmda-ofmipd, 1.42, 1.43 tmda-rfilter, 1.108, 1.109
"Jason R. Mastaler" <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda/bin In directory sc8-pr-cvs1:/tmp/cvs-serv17081/bin Modified Files: ChangeLog tmda-ofmipd tmda-rfilter Log Message: The Unix-style date strings in TMDA have been replaced by RFC 2822 compatible strings in all areas of the code for easier parsing. The latter is more standard and more easier processed using any RFC 2822 library (e.g, Python's email.Utils.parsedate()). It's also more descriptive since it shows the UTC offset. The previous format didn't distinguish between two timezones with the same name. So for example Sydney, Australia and New York City were undistinguished since they are both "EST", even though they are 16 hours apart. Very misleading. - Before: NYC: Sun Jan 11 02:32:08 EST 2004 SYD: Sun Jan 11 18:32:08 EST 2004 - After: NYC: Sun, 11 Jan 2004 02:32:08 -0500 (EST) SYD: Sun, 11 Jan 2004 18:32:08 +1100 (EST) Index: ChangeLog =================================================================== RCS file: /cvsroot/tmda/tmda/bin/ChangeLog,v retrieving revision 1.287 retrieving revision 1.288 diff -u -r1.287 -r1.288 --- ChangeLog 13 Nov 2003 19:28:08 -0000 1.287 +++ ChangeLog 11 Jan 2004 07:36:53 -0000 1.288 @@ -1,3 +1,14 @@ +2004-01-11 Jason R. Mastaler <[email protected]> + + * tmda-rfilter (verify_dated_cookie): Use Util.Make_date(). + + * tmda-ofmipd (SMTPServer.__init__): Ditto. + +2004-01-10 Jason R. Mastaler <[email protected]> + + * tmda-rfilter (release_pending): Use Util.make_date() for + X-TMDA-Confirmed. + 2003-11-13 Tim Legant <[email protected]> * tmda-ofmipd (class IMAP4_SSL): This local class is only Index: tmda-ofmipd =================================================================== RCS file: /cvsroot/tmda/tmda/bin/tmda-ofmipd,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- tmda-ofmipd 1 Jan 2004 23:22:19 -0000 1.42 +++ tmda-ofmipd 11 Jan 2004 07:36:53 -0000 1.43 @@ -998,7 +998,7 @@ self.listen(5) print >> DEBUGSTREAM, \ 'tmda-ofmipd started at %s\n\tListening on %s' % \ - (Util.unixdate(), proxyport) + (Util.make_date(), proxyport) def readable(self): if len(asyncore.socket_map) > int(connections): Index: tmda-rfilter =================================================================== RCS file: /cvsroot/tmda/tmda/bin/tmda-rfilter,v retrieving revision 1.108 retrieving revision 1.109 diff -u -r1.108 -r1.109 --- tmda-rfilter 9 Jan 2004 19:36:26 -0000 1.108 +++ tmda-rfilter 11 Jan 2004 07:36:53 -0000 1.109 @@ -489,7 +489,7 @@ pid, 'done') # Add the date when confirmed in a header. del msg['X-TMDA-Confirmed'] - msg['X-TMDA-Confirmed'] = Util.unixdate() + msg['X-TMDA-Confirmed'] = Util.make_date() # Reinject the message to the original envelope recipient. Util.sendmail(Util.msg_as_string(msg), recipient, return_path) mta.stop() @@ -626,11 +626,11 @@ else: if int(cookie_date) >= int('%d' % time.time()): logit("OK", "good_dated_cookie (%s)" % \ - Util.unixdate(int(cookie_date))) + Util.make_date(int(cookie_date))) mta.deliver(msgin) else: logmsg = "action_expired_dated (%s)" % \ - Util.unixdate(int(cookie_date)) + Util.make_date(int(cookie_date)) do_default_action(Defaults.ACTION_EXPIRED_DATED.lower(), logmsg, Defaults.BOUNCE_TEXT_EXPIRED_DATED)