Dump email and name instead of just email. modified: listfix_filter.py
Brian Barto bartobrian@gmail.com
Wed, 23 Mar 2022 17:20:14 -0400
1 files changed,
3 insertions(+),
9 deletions(-)
jump to
M
listfix_filter.py
→
listfix_filter.py
@@ -324,7 +324,6 @@ def command_dump():
list_email = None list_id = None - list_recipients = [] ## Check args@@ -347,16 +346,11 @@ return False
list_id = row[0] - ## Get email list recipients + ## Print list recipients - rows = db.execute("SELECT email FROM recipients WHERE list_id = ?", [list_id]) + rows = db.execute("SELECT name, email FROM recipients WHERE list_id = ?", [list_id]) for row in rows: - list_recipients.append(row[0]) - - ## Print recipients - - for r in list_recipients: - print(r) + print(f"{row[1]} ({row[0]})") return True