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)
This commit is contained in:
parent
db381f431b
commit
1351fb5f8b
|
@ -445,8 +445,8 @@ def forward_to_zephyr(message):
|
||||||
for line in message["content"].split("\n"))
|
for line in message["content"].split("\n"))
|
||||||
|
|
||||||
zwrite_args = ["zwrite", "-n", "-s", zsig_fullname, "-F", "Class $class, Instance $instance:\n" +
|
zwrite_args = ["zwrite", "-n", "-s", zsig_fullname, "-F", "Class $class, Instance $instance:\n" +
|
||||||
"To: @bold($recipient) at $time $date\n" +
|
"To: $recipient at $time $date\n" +
|
||||||
"From: @bold{$1 <$sender>}\n\n$2@(@color(blue))"]
|
"From: $1 <$sender>\n\n$2@(@color(blue))"]
|
||||||
if message['type'] == "stream":
|
if message['type'] == "stream":
|
||||||
zephyr_class = message["display_recipient"]
|
zephyr_class = message["display_recipient"]
|
||||||
instance = message["subject"]
|
instance = message["subject"]
|
||||||
|
|
Loading…
Reference in a new issue