diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2023-11-22 17:07:40 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2023-11-22 17:09:42 +0300 |
commit | 23cbaac193afe222962fe12b8a5710973678b363 (patch) | |
tree | d99194abcf775a32898c1f3db64a5cab868520c2 /calm/utils.py | |
parent | 24046373b914f5038e23b6821080bd3af8d810f9 (diff) |
Store first msgid for announce of a srcpackage
Store the first msgid allocated for a srcpackage announce, so we can set
in-reply-to and thus allow threading of subsequent announces for that
package.
Diffstat (limited to 'calm/utils.py')
-rw-r--r-- | calm/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/calm/utils.py b/calm/utils.py index 47085fd..26e3655 100644 --- a/calm/utils.py +++ b/calm/utils.py @@ -196,3 +196,5 @@ def sendmail(hdr, msg): with subprocess.Popen(['/usr/sbin/sendmail', '-t', '-oi', '-f', hdr['From']], stdin=subprocess.PIPE) as p: p.communicate(m.as_bytes()) logging.debug('sendmail: msgid %s, exit status %d' % (m['Message-Id'], p.returncode)) + + return m['Message-Id'] |