diff --git a/zephyr/zephyr_mirror.py b/zephyr/zephyr_mirror.py index e4a31d6f70..cbe1516aa2 100644 --- a/zephyr/zephyr_mirror.py +++ b/zephyr/zephyr_mirror.py @@ -260,9 +260,12 @@ def send_zephyr(message): if ' dot ' in zsig: print "ERROR! Couldn't compute zsig for %s!" % (message["sender_email"]) return + + content = message["content"] + cleaned_content = content.replace('<','<').replace('>','>').replace('&', '&') wrapped_content = "\n".join("\n".join(textwrap.wrap(line)) - for line in message["content"].split("\n")) - wrapped_content = wrapped_content.replace('<','<').replace('>','>').replace('&', '&') + for line in cleaned_content.split("\n")) + print "Sending message from %s humbug=>zephyr at %s" % (message["sender_email"], datetime.datetime.now()) if message['type'] == "class": zeph = zephyr.ZNotice(sender=message["sender_email"].replace("mit.edu", "ATHENA.MIT.EDU"),