dotfiles/.scripts/decode_header.py

7 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))