Ticket #1487718: part_mime_id.patch

File part_mime_id.patch, 670 bytes (added by brandond, 3 years ago)

Attached patch to add support for part MIME ID

  • program/steps/mail/func.inc

    old new  
    665665 
    666666  // trigger plugin hook 
    667667  $data = $RCMAIL->plugins->exec_hook('message_part_before', 
    668     array('type' => $part->ctype_secondary, 'body' => $part->body) + $p + array('safe' => false, 'plain' => false, 'inline_html' => true)); 
     668    array('type' => $part->ctype_secondary, 'body' => $part->body, 'id' => $part->mime_id) + $p + array('safe' => false, 'plain' => false, 'inline_html' => true)); 
    669669 
    670670  // convert html to text/plain 
    671671  if ($data['type'] == 'html' && $data['plain']) {