From: Joerg Jaspert Date: Sat, 10 May 2008 20:17:57 +0000 (+0200) Subject: Merge from sgran, so we add the date header, as the exim setup debian uses doesnt... X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1d2a9784e5c22c2ed2df812c8495602d1b973699;hp=a9123bdcda02874f089209a79cea9eadfa4a41a4;p=dak.git Merge from sgran, so we add the date header, as the exim setup debian uses doesnt do that for us --- diff --git a/tools/debianqueued-0.9/debianqueued b/tools/debianqueued-0.9/debianqueued index d58889f0..fce611e9 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 Subject: $subject +Date: $date X-Debian: DAK __MESSAGE__