Use the proper RFC2822 date format in the Received headers. (Somehow

I had convinced myself that ISO8601 dates were okay). Thanks to
Kee Hinckley <nazgul@somewhere.com>.

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
This commit is contained in:
Ask Bjørn Hansen 2003-02-06 05:17:28 +00:00
parent 7b67c74746
commit 883b184a80
3 changed files with 13 additions and 3 deletions

View File

@ -18,3 +18,6 @@ Matt Sergeant <matt@sergeant.org>: Clamav plugin.
Rasjid Wilcox <rasjidw@openminddev.net>: Lots of patches as per the
Changes file.
Kee Hinckley <nazgul@somewhere.com>: Sent me the correct strftime
format for the dates in the "Received" headers.

11
Changes
View File

@ -1,7 +1,14 @@
0.21-dev
All major changes in the this release where by Rasjid Wilcox
<rasjidw@openminddev.net>.
Use the proper RFC2822 date format in the Received headers. (Somehow
I had convinced myself that ISO8601 dates were okay). Thanks to
Kee Hinckley <nazgul@somewhere.com>.
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 <rasjidw@openminddev.net>.
Fix error handling in queue/qmail-queue.

View File

@ -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