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

ftpmaster-dak r1093: Merge from sgran, so we add the date header, as the exim setup debian uses doesnt do that for us



------------------------------------------------------------
revno: 1093
committer: Joerg Jaspert <joerg@debian.org>
branch nick: upstream
timestamp: Sat 2008-05-10 22:17:57 +0200
message:
  Merge from sgran, so we add the date header, as the exim setup debian uses doesnt do that for us
modified:
  tools/debianqueued-0.9/debianqueued
    ------------------------------------------------------------
    revno: 1090.1.8
    committer: Stephen Gran <steve@lobefin.net>
    branch nick: ftpmaster-dak-mail
    timestamp: Sat 2008-05-10 21:00:52 +0100
    message:
      Add Date: header manually
    modified:
      tools/debianqueued-0.9/debianqueued
=== modified file 'tools/debianqueued-0.9/debianqueued'
--- a/tools/debianqueued-0.9/debianqueued	2008-05-10 18:38:54 +0000
+++ b/tools/debianqueued-0.9/debianqueued	2008-05-10 20:00:52 +0000
@@ -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 @@
 		$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__
 


Reply to: