mirror of https://github.com/zulip/zulip.git
zephyr_mirror: Add comment explaining why we drop the @ATHENA.MIT.EDU in zwrite -C.
(imported from commit b591e2e0d6c607ef04e3c0005091078cfe23e3ff)
This commit is contained in:
parent
fb574966e1
commit
dbaeb9b1d5
|
@ -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,))
|
||||
|
|
Loading…
Reference in New Issue