applyed dirk's suggestion to prevent flagging BCC mails having empty but not null 'TO' list
authorEdouard Tisserant
Wed, 29 Jun 2016 17:23:09 +0200
changeset 77326b63b76518e
parent 772 77bafcb71517
child 774 bc90d5bf74d5
applyed dirk's suggestion to prevent flagging BCC mails having empty but not null 'TO' list
src/message_api.c
     1.1 --- a/src/message_api.c	Wed Jun 29 14:46:03 2016 +0200
     1.2 +++ b/src/message_api.c	Wed Jun 29 17:23:09 2016 +0200
     1.3 @@ -1046,7 +1046,7 @@
     1.4          //     - App splits mails with BCC in multiple mails.
     1.5          //     - Each email is encrypted separately
     1.6          
     1.7 -        if(_il->next || src->to || src->cc)
     1.8 +        if(_il->next || (src->to && src->to->ident) || src->cc)
     1.9          {
    1.10              // Only one Bcc with no other recipient allowed for now
    1.11              return PEP_ILLEGAL_VALUE;