... sync
authorVolker Birk <vb@pep-project.org>
Wed, 15 May 2019 22:31:54 +0200
branchsync
changeset 3694b52e11631ffa
parent 3693 36e22e151d99
child 3695 88a1333de5f0
...
src/message_api.c
     1.1 --- a/src/message_api.c	Wed May 15 22:29:19 2019 +0200
     1.2 +++ b/src/message_api.c	Wed May 15 22:31:54 2019 +0200
     1.3 @@ -987,6 +987,8 @@
     1.4      if (status)
     1.5          return status;
     1.6  
     1.7 +    dst->enc_format = PEP_enc_inline;
     1.8 +
     1.9      if (src->shortmsg) {
    1.10          dst->shortmsg = strdup(src->shortmsg);
    1.11          assert(dst->shortmsg);
    1.12 @@ -1002,6 +1004,8 @@
    1.13  
    1.14      dst->longmsg = _ctext;
    1.15  
    1.16 +    // longmsg_formatted is unsupported
    1.17 +
    1.18      // attachments are going unencrypted
    1.19      bloblist_t *bl = bloblist_dup(src->attachments);
    1.20      if (!bl)
    1.21 @@ -1013,7 +1017,6 @@
    1.22          attach_own_key(session, dst);
    1.23      }
    1.24  
    1.25 -    dst->enc_format = PEP_enc_inline;
    1.26      return PEP_STATUS_OK;
    1.27  }
    1.28