diff --git a/test/sync_handshake.py b/test/sync_handshake.py index ff844c8..3aba5d8 100644 --- a/test/sync_handshake.py +++ b/test/sync_handshake.py @@ -26,8 +26,11 @@ inbox = pathlib.Path("..") / "TestInbox" def messageToSend(msg): - # this is assuming that msg is unencrypted; only true for beacons - print("\n" + msg.attachments[0].decode()) + if msg.enc_format: + m, keys, rating, flags = msg.decrypt() + else: + m = msg + print("\n" + m.attachments[0].decode()) minimail.send(inbox, msg)