dotfiles/.scripts/decode_header.py
Gregor Feierabend 8ac3a2d12f config update
2021-06-29 11:18:37 +02:00

6 lines
143 B
Python
Executable file

#!/usr/bin/python3.8
import sys
from email.header import decode_header, make_header
h = make_header(decode_header(sys.argv[1]))
print(str(h))