[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20200401-14-gc169890
Jon TURNEY via Cygwin-apps-cvs <[email protected]>
| Newsgroups | gmane.os.cygwin.cvs.apps |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=c16989024207a8acb298e17382e93fa8ef1dc48b commit c16989024207a8acb298e17382e93fa8ef1dc48b Author: Jon Turney <[email protected]> Date: Sun May 17 18:59:27 2020 +0100 Log the msgid of sent mails to help investigation Diff: --- calm/buffering_smtp_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/calm/buffering_smtp_handler.py b/calm/buffering_smtp_handler.py index a590b8b..fcc5290 100644 --- a/calm/buffering_smtp_handler.py +++ b/calm/buffering_smtp_handler.py @@ -89,6 +89,7 @@ class BufferingSMTPHandler(logging.handlers.BufferingHandler): p.communicate(m.as_bytes()) self.buffer = [] + logging.debug('sent mail with msgid %s' % (m['Message-Id'])) def shouldFlush(self, record): # the capacity we pass to BufferingHandler is irrelevant since we