From: Ansgar Burchardt Date: Mon, 20 May 2013 10:39:45 +0000 (+0200) Subject: Send copy of rejections to the rejector X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fab53cccada95ca246bc88fe4ba95a653f716db;p=dak Send copy of rejections to the rejector Copies of rejections should go to the people responsible for the rejection and not to the dak's mail address: if the backports team in Debian rejects uploads, they should get the copy and not the ftp team. --- diff --git a/daklib/announce.py b/daklib/announce.py index 08fd3f10..e784df03 100644 --- a/daklib/announce.py +++ b/daklib/announce.py @@ -107,7 +107,7 @@ def announce_reject(upload, reason, rejected_by=None): subst['__REJECTOR_ADDRESS__'] = rejected_by if not automatic: - subst['__BCC__'] = '{0}\nBcc: {1}'.format(subst['__BCC__'], cnf['Dinstall::MyEmailAddress']) + subst['__BCC__'] = '{0}\nBcc: {1}'.format(subst['__BCC__'], subst['__REJECTOR_ADDRESS__']) message = TemplateSubst(subst, os.path.join(cnf['Dir::Templates'], 'queue.rejected')) send_mail(message, whitelists=whitelists)