in scripts/cronjobs/parseprojects.py [0:0]
def printNotice(msg, file=sys.stdout, body='', project=None):
print(msg, file=file)
if body == None: # sendmail barfs if body is missing
body = ''
if body == '':
body=msg
recipients = 'notifications@community.apache.org'
if project != None:
domain = mailDomains.get(project, project)
recipients = [f'private@{domain}.apache.org', recipients]
try:
sendmail.sendMail(msg, body=body, recipients=recipients)
except ConnectionRefusedError:
print(f"*** Failed to send the email to {recipients}", file=file)