From 1351fb5f8b5b1936fe364258560670ef06b117cb Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 2 Jan 2013 12:31:50 -0500 Subject: [PATCH] zmirror: Use shorter default_format string. This was causing about 10% of the time, personals being forwarded by tabbott/extra@ATHENA.MIT.EDU to get this error: zwrite: Field too long for buffer while sending notice to tabbott/extra@ATHENA.MIT.EDU We don't fully understand the cause of the problem, but this fixes it. (imported from commit 22c39a1061cde9ad6973ef07aee7227623a3d47d) --- bots/zephyr_mirror_backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index f259920..30781e4 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -445,8 +445,8 @@ def forward_to_zephyr(message): for line in message["content"].split("\n")) zwrite_args = ["zwrite", "-n", "-s", zsig_fullname, "-F", "Class $class, Instance $instance:\n" + - "To: @bold($recipient) at $time $date\n" + - "From: @bold{$1 <$sender>}\n\n$2@(@color(blue))"] + "To: $recipient at $time $date\n" + + "From: $1 <$sender>\n\n$2@(@color(blue))"] if message['type'] == "stream": zephyr_class = message["display_recipient"] instance = message["subject"]