mirror of
https://github.com/imapsync/imapsync.git
synced 2025-06-12 23:44:52 +02:00
9 lines
161 B
Python
Executable file
9 lines
161 B
Python
Executable file
#!/usr/bin/env python
|
|
import email
|
|
import sys
|
|
|
|
msg = email.message_from_string(sys.stdin.read())
|
|
if msg['From'] is None:
|
|
msg['From'] = sys.argv[1]
|
|
print(msg)
|
|
|