public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: jturney@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20160705-57-gdebaf7a Date: Sat, 08 Apr 2017 13:42:00 -0000 [thread overview] Message-ID: <20170408134213.19554.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=debaf7a24f5c21ba130c6ffd8cbcd5486f57bd0a commit debaf7a24f5c21ba130c6ffd8cbcd5486f57bd0a Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Sat Apr 8 14:12:31 2017 +0100 Ensure calm's email have Message-Id: and Date: headers Diff: --- calm/buffering_smtp_handler.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/calm/buffering_smtp_handler.py b/calm/buffering_smtp_handler.py index 13fca18..0025a5b 100644 --- a/calm/buffering_smtp_handler.py +++ b/calm/buffering_smtp_handler.py @@ -24,6 +24,7 @@ import logging import logging.handlers import email.message +import email.utils from . import common_constants @@ -56,6 +57,8 @@ class BufferingSMTPHandler(logging.handlers.BufferingHandler): m['To'] = ','.join(self.toaddrs) m['Bcc'] = common_constants.ALWAYS_BCC m['Subject'] = self.subject + m['Message-Id'] = email.utils.make_msgid() + m['Date'] = email.utils.formatdate() m['X-Calm'] = '1' # use utf-8 only if the message can't be ascii encoded
reply other threads:[~2017-04-08 13:42 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170408134213.19554.qmail@sourceware.org \ --to=jturney@sourceware.org \ --cc=cygwin-apps-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).