[oe-commits] [openembedded-core] 06/08: oe-build-perf-report-email.py: use proper fallback email address
git at git.openembedded.org
git at git.openembedded.org
Fri Apr 7 22:43:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 35f28c3cfe412f0e46523dda17e7e7611bb0f4ff
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Fri Apr 7 14:51:40 2017 +0300
oe-build-perf-report-email.py: use proper fallback email address
Use properly formatted fallback email address instead of just the
username.
Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/contrib/oe-build-perf-report-email.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/contrib/oe-build-perf-report-email.py b/scripts/contrib/oe-build-perf-report-email.py
index 81b58ab..055a7b1 100755
--- a/scripts/contrib/oe-build-perf-report-email.py
+++ b/scripts/contrib/oe-build-perf-report-email.py
@@ -21,6 +21,7 @@ import pwd
import re
import shutil
import smtplib
+import socket
import subprocess
import sys
import tempfile
@@ -211,7 +212,8 @@ def send_email(text_fn, html_fn, subject, recipients):
raise ReportError("Neither plain text nor html body specified")
full_name = pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0]
- email = os.environ.get('EMAIL', os.getlogin())
+ email = os.environ.get('EMAIL',
+ '{}@{}'.format(os.getlogin(), socket.getfqdn()))
msg['From'] = "{} <{}>".format(full_name, email)
msg['To'] = ', '.join(recipients)
msg['Subject'] = subject
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list