Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Fix where unable to sync fas => bugzilla summary is sent. #50

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/export-bugzilla.py
Expand Up @@ -125,7 +125,7 @@
smtp = smtplib.SMTP(MAILSERVER)
smtp.sendmail(ADMINEMAIL, [person.email], msg.as_string())
smtp.quit()
recipients = ', '.join([e for e in NOTIFYEMAIL if e != '$USER'])
recipients = [e for e in NOTIFYEMAIL if e != '$USER']
if recipients and no_bz_account:
smtplib.SMTP(MAILSERVER)
msg = Message()
Expand All @@ -143,9 +143,9 @@
''' % people

msg.add_header('From', ADMINEMAIL)
msg.add_header('To', recipients)
msg.add_header('To', ', '.join(recipients))
msg.add_header('Subject', 'Fedora Account System and Bugzilla Mismatch')
msg.set_payload(message)
smtp = smtplib.SMTP(MAILSERVER)
smtp.sendmail(ADMINEMAIL, [person.email], msg.as_string())
smtp.sendmail(ADMINEMAIL, recipients, msg.as_string())
smtp.quit()