diff --git a/test/sync_handshake.py b/test/sync_handshake.py
index d259814..a7a6425 100644
--- a/test/sync_handshake.py
+++ b/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("(.*)", msg.opt_fields["pEp.sync"].replace("\n", " "))
+ m = re.search("(.*)", 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 = "\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)