Skip to content

Commit

Permalink
Use the proper RFC2822 date format in the Received headers. (Somehow
Browse files Browse the repository at this point in the history
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
  • Loading branch information
abh committed Feb 6, 2003
1 parent 7b67c74 commit 883b184
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CREDITS
Expand Up @@ -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: 9 additions & 2 deletions Changes
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion lib/Qpsmtpd/SMTP.pm
Expand Up @@ -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
Expand Down

0 comments on commit 883b184

Please sign in to comment.