From 08f165e3acc51c8d00d32698ccf932d09d0beb74 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 10 Dec 2012 13:49:08 -0500 Subject: [PATCH] zephyr_mirror: Add comment explaining why we drop the @ATHENA.MIT.EDU in zwrite -C. (imported from commit b591e2e0d6c607ef04e3c0005091078cfe23e3ff) --- bots/zephyr_mirror_backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index 3165c36..316c1e8 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -474,6 +474,8 @@ def forward_to_zephyr(message): recipients = [recipient] else: zwrite_args.extend(["-C"]) + # We drop the @ATHENA.MIT.EDU here because otherwise the + # "CC: user1 user2 ..." output will be unnecessarily verbose. recipients = [to_zephyr_username(user["email"]).replace("@ATHENA.MIT.EDU", "") for user in message["display_recipient"]] logger.info("Forwarding message to %s" % (recipients,))