From f2a5c05376ba7c76135186a67104fcc273d6dc3e Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 12 Oct 2012 10:38:01 -0400 Subject: [PATCH] zephyr_mirror: Truncate stream names to 30 characters. (imported from commit 9973168227896dc8f1dc061b7970a503565856bf) --- zephyr_mirror.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephyr_mirror.py b/zephyr_mirror.py index d992029..dce262a 100644 --- a/zephyr_mirror.py +++ b/zephyr_mirror.py @@ -73,6 +73,8 @@ def send_humbug(zeph): zeph['shortname'] = zeph['sender'].split('@')[0] if "subject" in zeph: zeph["subject"] = zeph["subject"][:60] + if "stream" in zeph: + zeph["stream"] = zeph["stream"][:30] for key in zeph.keys(): if isinstance(zeph[key], unicode):