]> err.no Git - dak/commitdiff
Send copy of rejections to the rejector
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 20 May 2013 10:39:45 +0000 (12:39 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Mon, 20 May 2013 10:39:45 +0000 (12:39 +0200)
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.

daklib/announce.py

index 08fd3f109d4bdb873e76a5c11fbfa2815f9af016..e784df03619d05a7346728cd255fee4f7f17498d 100644 (file)
@@ -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)