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 fb574966e1
commit dbaeb9b1d5
1 changed files with 2 additions and 0 deletions

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