From 0886e55df6a8923a5c20a9ff4c34cde2238f3f0a Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sat, 23 Feb 2019 23:33:44 +0100 Subject: [PATCH] adding minimail --- test/minimail.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/minimail.py diff --git a/test/minimail.py b/test/minimail.py new file mode 100644 index 0000000..75b6635 --- /dev/null +++ b/test/minimail.py @@ -0,0 +1,20 @@ +# vim: set fileencoding=utf-8 : + +# Minimail +# Copyleft 2019, p≡p foundation + +# this file is under GNU General Public License 3.0 + + +import pEp +from secrets import token_urlsafe + + +def send(msg): + name = token_urlsafe(16) + ".eml" + with open("../TestInbox/" + name, "wb") as f: + f.write(str(msg).encode()) + + +def recv(msg): + pass