zephyr_mirror: Truncate stream names to 30 characters.

(imported from commit 9973168227896dc8f1dc061b7970a503565856bf)
This commit is contained in:
Tim Abbott 2012-10-12 10:38:01 -04:00
parent db3905475c
commit f2a5c05376

View file

@ -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):