Thanks for the customized code to kurtfm, giudax and Anders.
I have installed this mod on 1.6 latest release. Everything works well. There is only a scenario that not works.
When the client/customer reply to the ticket adding a new address to CC list, I see the ticket without new address.
Any help is appreciated.
BTW: I see also a PHP warning into httpd log.
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/ost/include/class.mailfetch.php on line 157, referer: http://robyx/support/tickets.php?status=answered
This line matches with the kurtfm code
$ccs = $headerinfo->cc;
foreach ($ccs as $id => $ccobject) {
$ccaddress = $ccobject->mailbox . "@" . $ccobject->host;
array_push($ccray, strtolower($ccaddress));
}