Added fix because Outlook does some illegal modification of our subject, even though it's utf8 encoded. We'll also accept p=p as a potential pEp header.
authorKrista Bennett <krista@pep-project.org>
Fri, 06 Oct 2017 15:43:33 +0200
changeset 2142892d7574b9db
parent 2141 e14ff2ea8e6b
child 2145 b7f4a200f0b0
Added fix because Outlook does some illegal modification of our subject, even though it's utf8 encoded. We'll also accept p=p as a potential pEp header.
src/message_api.c
     1.1 --- a/src/message_api.c	Fri Oct 06 15:11:40 2017 +0200
     1.2 +++ b/src/message_api.c	Fri Oct 06 15:43:33 2017 +0200
     1.3 @@ -1980,7 +1980,9 @@
     1.4                      GOTO(pep_error);
     1.5                  }
     1.6  
     1.7 +                // added p=p because outlook is on crack.
     1.8                  if (src->shortmsg == NULL || strcmp(src->shortmsg, "pEp") == 0 ||
     1.9 +                    strcmp(src->shortmsg, "p=p") == 0 ||
    1.10                      _unsigned_signed_strcmp(pepstr, src->shortmsg, PEP_SUBJ_BYTELEN) == 0)
    1.11                  {
    1.12                      char * shortmsg = NULL;