ENGINE-214: reinstated longer check for pEp messages on subject replace ENGINE-214
authorKrista Bennett <krista@pep-project.org>
Thu, 05 Oct 2017 12:12:58 +0200
branchENGINE-214
changeset 213796a82799439b
parent 2136 a56043e01864
child 2138 018bf5daa50d
ENGINE-214: reinstated longer check for pEp messages on subject replace
src/message_api.c
     1.1 --- a/src/message_api.c	Thu Oct 05 11:51:51 2017 +0200
     1.2 +++ b/src/message_api.c	Thu Oct 05 12:12:58 2017 +0200
     1.3 @@ -1908,9 +1908,9 @@
     1.4              if (status != PEP_STATUS_OK)
     1.5                  return status;
     1.6  
     1.7 -            // if (src->shortmsg == NULL || strcmp(src->shortmsg, "pEp") == 0 ||
     1.8 -            //     _unsigned_signed_strcmp(pepstr, src->shortmsg, PEP_SUBJ_BYTELEN) == 0)
     1.9 -            if (is_a_pEpmessage(src))
    1.10 +            // FIXME: This is a mess. Talk with VB about how far we go to identify
    1.11 +            if (is_a_pEpmessage(src) || (src->shortmsg == NULL || strcmp(src->shortmsg, "pEp") == 0 ||
    1.12 +                _unsigned_signed_strcmp(pepstr, src->shortmsg, PEP_SUBJ_BYTELEN) == 0))
    1.13              {
    1.14                  char * shortmsg = NULL;
    1.15                  char * longmsg = NULL;