|
@ -6,17 +6,15 @@ |
|
|
# this file is under GNU General Public License 3.0 |
|
|
# this file is under GNU General Public License 3.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import pathlib |
|
|
|
|
|
import pEp |
|
|
import pEp |
|
|
from secrets import token_urlsafe |
|
|
from secrets import token_urlsafe |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def send(msg): |
|
|
def send(inbox, msg): |
|
|
name = token_urlsafe(16) + ".eml" |
|
|
name = token_urlsafe(16) + ".eml" |
|
|
parent = pathlib.Path("..") |
|
|
with open(inbox / name, "wb") as f: |
|
|
with open(parent / "TestInbox" / name, "wb") as f: |
|
|
|
|
|
f.write(str(msg).encode()) |
|
|
f.write(str(msg).encode()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def recv(msg): |
|
|
def recv(inbox): |
|
|
pass |
|
|
pass |
|
|