1#!/usr/bin/env python
2import email
3import sys
4
5msg = email.message_from_string(sys.stdin.read())
6if msg['From'] is None:
7  msg['From'] = sys.argv[1]
8print(msg)
9
10