tests/unwrap-message-id.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 19 Dec 2023 22:03:34 +0100
changeset 51317 fa87eeeb10ca
parent 48966 6000f5b25c9b
permissions -rw-r--r--
sparse: use with statement for wlock This will avoid pytype complaining about the try/except range.

import sys

for line in sys.stdin:
    if line.lower() in ("message-id: \n", "in-reply-to: \n"):
        line = line[:-2]
    print(line, end="")