Browse Source

subtype "pEp.sync" invalid, switching to "pEp-sync"

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

4
test/sync_handshake.py

@ -72,7 +72,7 @@ def print_msg(p):
raise TypeError("print_msg(): pathlib.Path and pEp.Message supported, but "
+ str(type(p)) + " delivered")
m = re.search("<keysync>(.*)</keysync>", msg.opt_fields["pEp.sync"].replace("\n", " "))
m = re.search("<keysync>(.*)</keysync>", msg.opt_fields["pEp-sync"].replace("\n", " "))
if m:
if etree:
tree = objectify.fromstring(m.group(1).replace("\r", ""))
@ -91,7 +91,7 @@ def messageToSend(msg):
m = msg
text = "<!-- sending from " + device_name + " -->\n" + m.attachments[0].decode()
output(text)
msg.opt_fields = { "pEp.sync": text }
msg.opt_fields = { "pEp-sync": text }
minimail.send(inbox, msg, device_name)

Loading…
Cancel
Save