Browse Source

show encrypted sync messages, too

PYADPT-55
Volker Birk 6 years ago
parent
commit
4e37407ea0
  1. 7
      test/sync_handshake.py

7
test/sync_handshake.py

@ -26,8 +26,11 @@ inbox = pathlib.Path("..") / "TestInbox"
def messageToSend(msg): def messageToSend(msg):
# this is assuming that msg is unencrypted; only true for beacons if msg.enc_format:
print("<!-- " + str(msg.from_) + " -->\n" + msg.attachments[0].decode()) m, keys, rating, flags = msg.decrypt()
else:
m = msg
print("<!-- " + str(m.from_) + " -->\n" + m.attachments[0].decode())
minimail.send(inbox, msg) minimail.send(inbox, msg)

Loading…
Cancel
Save