Browse Source

JSON-183: call update_identity() on each identity in msg->to and msg->cc

JSON-183
roker 7 months ago
parent
commit
57c9a069db
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      server/ev_server.cc

+ 4
- 3
server/ev_server.cc View File

@ -64,10 +64,11 @@ std::string getBinaryPath()
}
bool at_least_one_PGP_address(const identity_list* il)
bool at_least_one_PGP_address(PEP_SESSION session, const identity_list* il)
{
for(; il!=nullptr; il = il->next)
{
update_identity(session, il->ident);
if(il->ident->comm_type == PEP_ct_pEp)
return true;
}
@ -84,8 +85,8 @@ PEP_STATUS outgoing_message_rating_with_subject_info(PEP_SESSION session, messag
}else{
// pseudo code:
// if (at_least_one_PGP_address()) protect_subject = session->unprotected_subject; else true;
if( at_least_one_PGP_address(msg->to)
|| at_least_one_PGP_address(msg->cc))
if( at_least_one_PGP_address(session, msg->to)
|| at_least_one_PGP_address(session, msg->cc))
{
*subject_info = false;
}else{


Loading…
Cancel
Save