X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fdebianqueued-0.9%2Fdebianqueued;h=07f378446d3b998e5fe47455d0f345c51314b1da;hb=ff1ba021edbdd9028e44ae4f853ac3ffc56249af;hp=c2f282d39331159a8e28886a7ae2a4d6411a0fed;hpb=b83d9299abd33a580b8b4ebf6aff4f4281b34541;p=dak.git diff --git a/tools/debianqueued-0.9/debianqueued b/tools/debianqueued-0.9/debianqueued index c2f282d3..07f37844 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 ); @@ -1169,6 +1169,8 @@ sub process_commands($) { if ($pgplines < 3) { msg( "log,mail", "$commands isn't signed with PGP/GnuPG\n" ); + msg( "mail", "or the uploaded file is broken. Make sure to transfer in binary mode\n" ); + msg( "mail", "or better yet - use dcut for commands files\n"); goto remove; } @@ -2132,10 +2134,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: dak\@ftp-master.debian.org +From: Archive Administrator Subject: $subject +Date: $date X-Debian: DAK __MESSAGE__