diff --git a/src/message.cc b/src/message.cc index 5152a8e..9f3b4fd 100644 --- a/src/message.cc +++ b/src/message.cc @@ -110,8 +110,8 @@ namespace pEp { { if (encoding == "") { string _mime_type = _bl->mime_type ? _bl->mime_type : ""; - if (_mime_type == "application/pEp") - encoding = "pep-sync"; + if (_mime_type == "application/pEp.sync") + encoding = "pep.sync"; else encoding = "ascii"; } diff --git a/src/message_api.cc b/src/message_api.cc index 6a52b9c..bdec3df 100644 --- a/src/message_api.cc +++ b/src/message_api.cc @@ -100,7 +100,7 @@ namespace pEp { object sync_search(string name) { - if (name != "pep-sync") { + if (name != "pep.sync") { return object(); } else {