[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/security] Add Date: header manually



---
 tools/debianqueued-0.9/debianqueued |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tools/debianqueued-0.9/debianqueued b/tools/debianqueued-0.9/debianqueued
index d58889f..fce611e 100755
--- a/tools/debianqueued-0.9/debianqueued
+++ b/tools/debianqueued-0.9/debianqueued
@@ -241,7 +241,7 @@
 require 5.002;
 use strict;
 use POSIX;
-use POSIX qw( sys_stat_h sys_wait_h signal_h );
+use POSIX qw( strftime sys_stat_h sys_wait_h signal_h );
 use Net::Ping;
 use Net::FTP;
 use Socket qw( PF_INET AF_INET SOCK_STREAM );
@@ -2132,10 +2132,12 @@ sub send_mail($$$) {
 		$Email::Send::Sendmail::SENDMAIL = $conf::mail;
 	}
 
+	my $date = sprintf "%s", strftime("%a, %d %B %Y %T %z", (localtime(time)));
 	my $message = <<__MESSAGE__;
 To: $addr
 From: Archive Administrator <dak\@ftp-master.debian.org>
 Subject: $subject
+Date: $date
 X-Debian: DAK
 __MESSAGE__
 
-- 
1.5.6.5



Reply to: