diff options
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-x | scripts/contrib/oe-build-perf-report-email.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
21 | import re | 21 | import re |
22 | import shutil | 22 | import shutil |
23 | import smtplib | 23 | import smtplib |
24 | import socket | ||
24 | import subprocess | 25 | import subprocess |
25 | import sys | 26 | import sys |
26 | import tempfile | 27 | import tempfile |
@@ -211,7 +212,8 @@ def send_email(text_fn, html_fn, subject, recipients): | |||
211 | raise ReportError("Neither plain text nor html body specified") | 212 | raise ReportError("Neither plain text nor html body specified") |
212 | 213 | ||
213 | full_name = pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] | 214 | full_name = pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] |
214 | email = os.environ.get('EMAIL', os.getlogin()) | 215 | email = os.environ.get('EMAIL', |
216 | '{}@{}'.format(os.getlogin(), socket.getfqdn())) | ||
215 | msg['From'] = "{} <{}>".format(full_name, email) | 217 | msg['From'] = "{} <{}>".format(full_name, email) |
216 | msg['To'] = ', '.join(recipients) | 218 | msg['To'] = ', '.join(recipients) |
217 | msg['Subject'] = subject | 219 | msg['Subject'] = subject |