view tests/unwrap-message-id.py @ 49515:e84064e88e5d

rhg: share some code
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Thu, 22 Sep 2022 18:44:28 -0400
parents 6000f5b25c9b
children
line wrap: on
line source

import sys

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