tests/unwrap-message-id.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 26 Mar 2024 13:28:52 +0000
changeset 51549 a452807df09b
parent 48875 6000f5b25c9b
permissions -rw-r--r--
nocg: make the utility work are both a decorator and context manager In some case, the context manager version will be simpler.

import sys

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