tests/unwrap-message-id.py
author Matt Harbison <matt_harbison@yahoo.com>
Sun, 20 Aug 2023 02:10:51 -0400
changeset 50874 65e2cb23294e
parent 48966 6000f5b25c9b
permissions -rw-r--r--
summary: migrate `opts` to native kwargs This has the added benefit of unconfusing PyCharm- it thought `opts` in the nested functions were str based for some reason.

import sys

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