sb: Merge mailer changes from rtems-tools

This adds the improved mailer.py script from rtems-tools.

Closes #4388
This commit is contained in:
Alex White
2021-04-21 16:58:09 -05:00
committed by Joel Sherrill
parent 774b5fcec2
commit 4e6dc64314
3 changed files with 189 additions and 33 deletions

View File

@@ -695,6 +695,8 @@ def run():
'log' : '',
'reports': [],
'failure': None }
# Request this now to generate any errors.
smtp_host = mail['mail'].smtp_host()
to_addr = opts.get_arg('--mail-to')
if to_addr is not None:
mail['to'] = to_addr[1]