From 72ebb019139dbd3d8f8edf61f3af99555a333095 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Fri, 12 Oct 2012 10:47:01 -0400 Subject: [PATCH] Make Message's display_recipient field be an object with consistent names for both personals and huddles. (imported from commit 8b00f16b036ed3fb3f7d56e7393271ec1d458ea5) --- zephyr_mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr_mirror.py b/zephyr_mirror.py index d992029..8b25ac1 100644 --- a/zephyr_mirror.py +++ b/zephyr_mirror.py @@ -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)