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-29 14:15:59 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2016-03-29 14:15:59 +0300
commit83dc7d12d415f8c2c2d941acc5b145bb8cbb28b8 (patch)
tree19181c5dd8941ddbcde472ff579908fa9ba3a1ba
parent71791009a682a83ca273c3c58998891d7052ea1d (diff)
Add an 'X-Calm' header to mark mails from calm
-rw-r--r--buffering_smtp_handler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buffering_smtp_handler.py b/buffering_smtp_handler.py
index 528c8b8..2bcffcc 100644
--- a/buffering_smtp_handler.py
+++ b/buffering_smtp_handler.py
@@ -57,6 +57,7 @@ class BufferingSMTPHandler(logging.handlers.BufferingHandler):
m['To'] = ','.join(self.toaddrs)
m['Bcc'] = common_constants.ALWAYS_BCC
m['Subject'] = self.subject
+ m['X-Calm'] = '1'
# use utf-8 only if the message can't be ascii encoded
charset = 'ascii'