Mercurial > hg
annotate tests/unwrap-message-id.py @ 50995:80c243eab724
openvms: duck-punch a bugfix into `environb` object
The official Python3 build for OpenVMS has some crippling bug that we need to
patch dynamically
OpenVMS patches
author | Jean-Francois Pieronne <jf.pieronne@laposte.net> |
---|---|
date | Thu, 03 Aug 2023 02:28:52 +0200 |
parents | 6000f5b25c9b |
children |
rev | line source |
---|---|
43334
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
1 import sys |
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
2 |
44405
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
3 for line in sys.stdin: |
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
4 if line.lower() in ("message-id: \n", "in-reply-to: \n"): |
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
5 line = line[:-2] |
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
6 print(line, end="") |