tests/unwrap-message-id.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 00:49:52 +0200
changeset 50931 ceac1bd816f7
parent 48966 6000f5b25c9b
permissions -rw-r--r--
path-suboption: use str for "_pushloc" suboptions That second argument refer to an attribute and do not needs to be bytes.

import sys

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