From 4e37407ea0ba2bb117ed8128ee63623bfc1bca22 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Thu, 14 Mar 2019 13:42:26 +0100 Subject: [PATCH] show encrypted sync messages, too --- test/sync_handshake.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)