zephyr_mirror: Don't break long words/urls when mirroring.
(imported from commit df2b6a6969fc54016eeee4996df317e2843844c8)
This commit is contained in:
parent
27b02176bc
commit
27d597d686
|
@ -371,7 +371,8 @@ def forward_to_zephyr(message):
|
||||||
logger.error("Error computing zsig for %s!" % (message["sender_email"],))
|
logger.error("Error computing zsig for %s!" % (message["sender_email"],))
|
||||||
return
|
return
|
||||||
|
|
||||||
wrapped_content = "\n".join("\n".join(textwrap.wrap(line))
|
wrapper = textwrap.TextWrapper(break_long_words=False)
|
||||||
|
wrapped_content = "\n".join("\n".join(wrapper.wrap(line))
|
||||||
for line in message["content"].split("\n"))
|
for line in message["content"].split("\n"))
|
||||||
|
|
||||||
logger.info("Forwarding message from %s" % (message["sender_email"],))
|
logger.info("Forwarding message from %s" % (message["sender_email"],))
|
||||||
|
|
Loading…
Reference in a new issue