zephyr_mirror: Add comment explaining why we drop the @ATHENA.MIT.EDU in zwrite -C.

(imported from commit b591e2e0d6c607ef04e3c0005091078cfe23e3ff)
This commit is contained in:
Tim Abbott 2012-12-10 13:49:08 -05:00
parent 8e0aabc730
commit 08f165e3ac

View file

@ -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,))