From: "Alexander Kanavin" <alex.kanavin@gmail.com>
To: yocto@lists.yoctoproject.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [AUH][PATCH 1/2] emailhandler: actually send messages to cc_list as well
Date: Tue, 30 Jun 2020 11:09:10 +0200 [thread overview]
Message-ID: <20200630090911.8813-1-alex.kanavin@gmail.com> (raw)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
modules/utils/emailhandler.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/utils/emailhandler.py b/modules/utils/emailhandler.py
index 066f013..8c8b85b 100644
--- a/modules/utils/emailhandler.py
+++ b/modules/utils/emailhandler.py
@@ -103,6 +103,8 @@ class Email(object):
try:
smtp = SMTP(self.smtp_host, self.smtp_port)
smtp.sendmail(self.from_addr, to_addr, msg_text)
+ if cc_addr is not None:
+ smtp.sendmail(self.from_addr, cc_addr, msg_text)
smtp.close()
except Exception as e:
E("Could not send email: %s" % str(e))
--
2.27.0
next reply other threads:[~2020-06-30 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-30 9:09 Alexander Kanavin [this message]
2020-06-30 9:09 ` [AUH][PATCH 2/2] upgradehelper: use a separate setting for CCing recipe upgrades Alexander Kanavin
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=20200630090911.8813-1-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=yocto@lists.yoctoproject.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: link
Be 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