[sysadmin-bin] Use msg subject instead, variable name adjustment
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Use msg subject instead, variable name adjustment
- Date: Wed, 4 May 2022 08:28:56 +0000 (UTC)
commit 76775c167c94de39e86f6bd1f3d8a0b38e719b7b
Author: Andrea Veri <averi redhat com>
Date: Wed May 4 10:28:45 2022 +0200
Use msg subject instead, variable name adjustment
membership/foundation-operations.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/membership/foundation-operations.py b/membership/foundation-operations.py
index 3edd3e4..e2d1660 100755
--- a/membership/foundation-operations.py
+++ b/membership/foundation-operations.py
@@ -182,7 +182,7 @@ def send_form_letters(form_letter, email, name, *args):
server = smtplib.SMTP("localhost")
server.sendmail(msg['From'], [msg['To']], msg.as_string())
server.quit()
- print(f"Successfully sent { form_letter } to { name } with email { email }")
+ print(f"Successfully sent mail with subject \"{ msg['subject'] }\" to { name } with email { email }")
except smtplib.SMTPException:
print("ERROR: I wasn't able to send the email correctly, please check /var/log/maillog!")
@@ -200,7 +200,7 @@ def subscribe_new_members():
ldap_vars = glu.get_attributes_from_ldap(member, 'FirstAdded', 'LastRenewedOn')
if today in (ldap_vars[1], ldap_vars[2]):
- new_members.append(ldap_vars[0])
+ members.append(ldap_vars[0])
else:
continue
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]