diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2016-03-29 14:15:59 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2016-03-29 14:15:59 +0300 |
commit | 83dc7d12d415f8c2c2d941acc5b145bb8cbb28b8 (patch) | |
tree | 19181c5dd8941ddbcde472ff579908fa9ba3a1ba | |
parent | 71791009a682a83ca273c3c58998891d7052ea1d (diff) |
Add an 'X-Calm' header to mark mails from calm
-rw-r--r-- | buffering_smtp_handler.py | 1 |
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' |