Format plain text as Format=Flowed DelSp=No

This avoids triggering spam filters which require that lines are wrapped
to 78 characters.
This commit is contained in:
Alexander Krotov
2020-07-25 13:10:38 +03:00
committed by link2xt
parent 1325b2f7c6
commit be922eef0f
5 changed files with 180 additions and 3 deletions

View File

@@ -986,7 +986,10 @@ class TestOnlineAccount:
chat = acfactory.get_accepted_chat(ac1, ac2)
lp.sec("sending multi-line non-unicode message from ac1 to ac2")
text1 = "hello\nworld"
text1 = (
"hello\nworld\nthis is a very long message that should be"
+ " wrapped using format=flowed and unwrapped on the receiver"
)
msg_out = chat.send_text(text1)
assert not msg_out.is_encrypted()