From fcd0089240c1a0dd016075f72f35f377dcddc218 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 5 Jan 2023 21:55:27 -0500 Subject: [PATCH] Prefix mailman output with targeted mailing list --- mailman_sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailman_sync.py b/mailman_sync.py index 7da52e5..44b20bd 100755 --- a/mailman_sync.py +++ b/mailman_sync.py @@ -35,7 +35,8 @@ def sync_members( capture_output=True, check=True, ) - print(output.stdout) + for line in output.stdout.splitlines(): + print(f"{mailing_list}: {line}") def main(mailman_bin: Path, api: str, api_auth: str, list_suffix: str, dry_run: bool):