From 107b1ffdcd6d2dcc3c0778555b9525af0bcbdb0c Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Fri, 29 Oct 2021 17:33:42 +0000 Subject: [PATCH] Change email copy settings. Commit ready to merge. - Legacy-Id: 19497 --- ietf/utils/mail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/utils/mail.py b/ietf/utils/mail.py index 5c5c105ea..d1949210a 100644 --- a/ietf/utils/mail.py +++ b/ietf/utils/mail.py @@ -390,7 +390,7 @@ def send_mail_mime(request, to, frm, subject, msg, cc=None, extra=None, toUser=F try: copy_to = settings.EMAIL_COPY_TO except AttributeError: - copy_to = "ietf.tracker.archive+%s@gmail.com" % settings.SERVER_MODE + copy_to = None if copy_to and (copy or not production) and not (test_mode or debugging): # if we're running automated tests, this copy is just annoying if bcc: msg['X-Tracker-Bcc']=bcc @@ -575,7 +575,7 @@ def send_error_to_secretariat(msg): try: copy_to = settings.EMAIL_COPY_TO except AttributeError: - copy_to = "ietf.tracker.archive+%s@gmail.com" % settings.SERVER_MODE + copy_to = None if copy_to and not test_mode and not debugging: # if we're running automated tests, this copy is just annoying copy_email(msg, copy_to,originalBcc=None) except smtplib.SMTPException: