From 883b184a8057bf381594f1b9d74024054f58054f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Thu, 6 Feb 2003 05:17:28 +0000 Subject: [PATCH] Use the proper RFC2822 date format in the Received headers. (Somehow I had convinced myself that ISO8601 dates were okay). Thanks to Kee Hinckley . Print the date in the local timezone instead of in -0000. (Not entirely convinced this is a good idea) git-svn-id: https://svn.perl.org/qpsmtpd/trunk@116 958fd67b-6ff1-0310-b445-bb7760255be9 --- CREDITS | 3 +++ Changes | 11 +++++++++-- lib/Qpsmtpd/SMTP.pm | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CREDITS b/CREDITS index c8b9783..e81006c 100644 --- a/CREDITS +++ b/CREDITS @@ -18,3 +18,6 @@ Matt Sergeant : Clamav plugin. Rasjid Wilcox : Lots of patches as per the Changes file. + +Kee Hinckley : Sent me the correct strftime +format for the dates in the "Received" headers. diff --git a/Changes b/Changes index 9bb2c64..2e61c59 100644 --- a/Changes +++ b/Changes @@ -1,7 +1,14 @@ 0.21-dev - All major changes in the this release where by Rasjid Wilcox - . + Use the proper RFC2822 date format in the Received headers. (Somehow + I had convinced myself that ISO8601 dates were okay). Thanks to + Kee Hinckley . + + Print the date in the local timezone instead of in -0000. (Not + entirely convinced this is a good idea) + + The following major changes in the this release where by Rasjid + Wilcox . Fix error handling in queue/qmail-queue. diff --git a/lib/Qpsmtpd/SMTP.pm b/lib/Qpsmtpd/SMTP.pm index 62b93bb..1384fa3 100644 --- a/lib/Qpsmtpd/SMTP.pm +++ b/lib/Qpsmtpd/SMTP.pm @@ -329,7 +329,7 @@ sub data { $header->add("Received", "from ".$self->connection->remote_info ." (HELO ".$self->connection->hello_host . ") (".$self->connection->remote_ip . ") by ".$self->config('me')." (qpsmtpd/".$self->version - .") with SMTP; ". (strftime('%Y-%m-%d %TZ', gmtime)), + .") with SMTP; ". (strftime('%a, %d %b %Y %H:%M:%S %z', localtime)), 0); # if we get here without seeing a terminator, the connection is