From: Joerg Jaspert Date: Tue, 7 Sep 2010 21:11:50 +0000 (+0200) Subject: Allow override of queued mail address X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c31f73404908bce265de0f26742c0fb9fa9263b4;p=dak Allow override of queued mail address Signed-off-by: Joerg Jaspert --- diff --git a/tools/debianqueued-0.9/config b/tools/debianqueued-0.9/config index 2e6f41f3..16c482a0 100644 --- a/tools/debianqueued-0.9/config +++ b/tools/debianqueued-0.9/config @@ -125,6 +125,8 @@ $remote_timeout = 3*60*60; # 3 hours # mail address of maintainer $maintainer_mail = "ftpmaster\@debian.org"; +# to override the TO address of ALL outgoing mail, set this value. +$overridemail = ""; # logfile rotating: # ----------------- diff --git a/tools/debianqueued-0.9/config-backports b/tools/debianqueued-0.9/config-backports index bf8f76e5..9144acc9 100644 --- a/tools/debianqueued-0.9/config-backports +++ b/tools/debianqueued-0.9/config-backports @@ -125,6 +125,9 @@ $remote_timeout = 3*60*60; # 3 hours # mail address of maintainer $maintainer_mail = "ftpmaster\@debian.org"; +# to override the TO address of ALL outgoing mail, set this value. +$overridemail = "debian-backports-changes@lists.debian.org"; + # logfile rotating: # ----------------- # how often to rotate (in days) diff --git a/tools/debianqueued-0.9/config-upload b/tools/debianqueued-0.9/config-upload index a8743e53..77cc90d7 100644 --- a/tools/debianqueued-0.9/config-upload +++ b/tools/debianqueued-0.9/config-upload @@ -125,6 +125,8 @@ $remote_timeout = 3*60*60; # 3 hours # mail address of maintainer $maintainer_mail = "ftpmaster\@debian.org"; +# to override the TO address of ALL outgoing mail, set this value. +$overridemail = ""; # logfile rotating: # ----------------- diff --git a/tools/debianqueued-0.9/debianqueued b/tools/debianqueued-0.9/debianqueued index 37171ce2..1eb502dc 100755 --- a/tools/debianqueued-0.9/debianqueued +++ b/tools/debianqueued-0.9/debianqueued @@ -59,6 +59,7 @@ $junk = @conf::test_binaries; $junk = @conf::maintainer_mail; $junk = @conf::targetdir_delayed; $junk = $conf::mail ||= '/usr/sbin/sendmail'; +$junk = $conf::overridemail; $conf::target = "localhost" if $conf::upload_method eq "copy"; package main; @@ -2330,7 +2331,10 @@ sub send_mail($$$) { $Email::Send::Sendmail::SENDMAIL = $conf::mail; } - $addr = 'debian-backports-changes@lists.debian.org'; + if ($conf::overridemail) { + $addr = $conf::overridemail; + } + my $date = sprintf "%s", strftime( "%a, %d %b %Y %T %z", ( localtime(time) ) ); my $message = <<__MESSAGE__;