tests/unwrap-message-id.py
author Yuya Nishihara <yuya@tcha.org>
Sat, 16 Nov 2019 15:24:49 +0900
changeset 43684 009c115eba95
parent 43334 4128ffba4431
child 44405 a1908951ca42
permissions -rw-r--r--
typing: fix argument type of encoding.localstr() It takes both utf-8 and local strings in bytes type.

from __future__ import absolute_import, print_function

import re
import sys

print(re.sub(r"(?<=Message-Id:) \n ", " ", sys.stdin.read()), end="")