Make Message's display_recipient field be an object with consistent names for both personals and huddles.

(imported from commit 8b00f16b036ed3fb3f7d56e7393271ec1d458ea5)
This commit is contained in:
Zev Benjamin 2012-10-12 10:47:01 -04:00
parent b229b307d6
commit 72ebb01913

View file

@ -261,7 +261,7 @@ def forward_to_zephyr(message):
zeph.send()
elif message['type'] == "personal":
zeph = zephyr.ZNotice(sender=message["sender_email"].replace("mit.edu", "ATHENA.MIT.EDU"),
auth=True, recipient=message["display_recipient"].replace("mit.edu", "ATHENA.MIT.EDU"),
auth=True, recipient=message["display_recipient"]["email"].replace("mit.edu", "ATHENA.MIT.EDU"),
cls="message", instance="personal")
body = "%s\0%s" % (zsig, wrapped_content)
zeph.setmessage(body)