Ticket #1484753: pgp_signed.patch

File pgp_signed.patch, 865 bytes (added by alec, 5 years ago)
  • rcube_message.

    old new  
    224224      $c->headers = &$structure->headers; 
    225225      $this->parts[] = $c; 
    226226    } 
    227  
    228227    // print body if message doesn't have multiple parts 
    229228    if ($message_ctype_primary == 'text' && !$recursive) { 
    230229      $structure->type = 'content'; 
    231230      $this->parts[] = &$structure; 
    232231    } 
     232    // the same for pgp signed messages 
     233    else if ($message_ctype_primary == 'application' && $message_ctype_secondary == 'pgp' && !$recursive) { 
     234      $structure->type = 'content'; 
     235      $this->parts[] = &$structure; 
     236    } 
    233237    // message contains alternative parts 
    234238    else if ($message_ctype_primary == 'multipart' && ($message_ctype_secondary == 'alternative') && is_array($structure->parts)) { 
    235239      // get html/plaintext parts