Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2016-03-24 00:22:55 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2016-03-29 14:14:54 +0300
commit71791009a682a83ca273c3c58998891d7052ea1d (patch)
treee528c4e5840321f2a249dcf314f571aa12b4f92c
parentb245856fe5e286431d75bab81e8ce68786b8b2d3 (diff)
Add a testing facility to Bcc: all emails sent
-rw-r--r--buffering_smtp_handler.py1
-rw-r--r--common_constants.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/buffering_smtp_handler.py b/buffering_smtp_handler.py
index 7720588..528c8b8 100644
--- a/buffering_smtp_handler.py
+++ b/buffering_smtp_handler.py
@@ -55,6 +55,7 @@ class BufferingSMTPHandler(logging.handlers.BufferingHandler):
m = email.message.Message()
m['From'] = self.fromaddr
m['To'] = ','.join(self.toaddrs)
+ m['Bcc'] = common_constants.ALWAYS_BCC
m['Subject'] = self.subject
# use utf-8 only if the message can't be ascii encoded
diff --git a/common_constants.py b/common_constants.py
index 7d031c9..e40c346 100644
--- a/common_constants.py
+++ b/common_constants.py
@@ -38,6 +38,9 @@ FTP = '/var/ftp/pub/cygwin'
# logs are always emailed to these addresses
EMAILS = ','.join(map(lambda m: m + '@sourceware.org', ['corinna', 'yselkowitz', 'jturney']))
+# for testing purposes, every email we send is bcc'd to these addresses
+ALWAYS_BCC = ''
+
# these maintainers can upload orphaned packages as well
ORPHANMAINT = "Yaakov Selkowitz"