all repos — listfix @ 04069e48fbcdcc00ec5a4a323d81d3ba68d9ccbc

Postfix Mailing List Software; Maintained on behalf the of Agency Economy Incorporated NFP.

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
commit

04069e48fbcdcc00ec5a4a323d81d3ba68d9ccbc

parent

062314f35e2728dfb4aabab66fbbf2ef838b34cf

1 files changed, 3 insertions(+), 9 deletions(-)

jump to
M listfix_filter.pylistfix_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