You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
396 B
22 lines
396 B
# vim: set fileencoding=utf-8 :
|
|
|
|
# Minimail
|
|
# Copyleft 2019, p≡p foundation
|
|
|
|
# this file is under GNU General Public License 3.0
|
|
|
|
|
|
import pathlib
|
|
import pEp
|
|
from secrets import token_urlsafe
|
|
|
|
|
|
def send(msg):
|
|
name = token_urlsafe(16) + ".eml"
|
|
parent = pathlib.Path("..")
|
|
with open(parent / "TestInbox" / name, "wb") as f:
|
|
f.write(str(msg).encode())
|
|
|
|
|
|
def recv(msg):
|
|
pass
|
|
|