Use properly formatted fallback email address instead of just the username.
Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- 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 81b58ab020..055a7b12cf 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 -- 2.12.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core