src/baseprotocol.c
branchkeysync
changeset 952 986fd7b2eb8f
parent 587 ed8aa5e5b02c
child 1092 222705a14f1a
     1.1 --- a/src/baseprotocol.c	Sun Jul 31 19:38:23 2016 +0200
     1.2 +++ b/src/baseprotocol.c	Sun Jul 31 20:25:27 2016 +0200
     1.3 @@ -1,4 +1,5 @@
     1.4  #include "pEp_internal.h"
     1.5 +#include "message_api.h"
     1.6  
     1.7  PEP_STATUS decorate_message(
     1.8          message *msg,
     1.9 @@ -14,7 +15,7 @@
    1.10          return PEP_ILLEGAL_VALUE;
    1.11  
    1.12      bloblist_t *bl = bloblist_add(msg->attachments, payload, size,
    1.13 -            "application/pEp", "auto.pEp");
    1.14 +            "application/pEp", "ignore_this_attachment.pEp");
    1.15      if (bl == NULL)
    1.16          goto enomem;
    1.17  
    1.18 @@ -50,6 +51,8 @@
    1.19      if (!msg)
    1.20          goto enomem;
    1.21  
    1.22 +    add_opt_field(msg, "pEp-auto-consume", "yes");
    1.23 +
    1.24      msg->from = identity_dup(me);
    1.25      if (!msg->from)
    1.26          goto enomem;
    1.27 @@ -58,7 +61,7 @@
    1.28      if (!msg->to)
    1.29          goto enomem;
    1.30  
    1.31 -    msg->shortmsg = strdup("pEp");
    1.32 +    msg->shortmsg = strdup("p≡p synchronization message - please ignore");
    1.33      assert(msg->shortmsg);
    1.34      if (!msg->shortmsg)
    1.35          goto enomem;