In response to my last post,
I have effectively stripped out #assign from the email to users and what gets posted in osticket...
(only stripping out #assign here - I only have released #assign and #internal to staff and I used n0user's method for #internal)
In class.ticket.php - I replaced:
$email->send($this->getEmail(), $msg, $msg, $attachments);
with:
$msg = preg_replace("/#assign:.(+)/", '', $msg);
$email->send($this->getEmail(), $msg, $msg, $attachments);
and this:
if(($vars && preg_match ("/#internal/", $vars, $action)) OR ($vars && preg_match ("/#internal/", $vars, $action))) {
$vars = preg_replace("/#internal/", '', $vars);
$vars = 'Ticket Updated via email';
if(!($response=$this->getThread()->addNote($vars, $errors)))
return null;
} else {
if(!($response = $this->getThread()->addResponse($vars, $errors)))
return null;
}
with this:
$mvars = $vars;
$mvars = preg_replace("/#assign:.(+)/", '', $mvars);
if(($vars && preg_match ("/#internal/", $vars, $action)) OR ($vars && preg_match ("/#internal/", $vars, $action))) {
$mvars = preg_replace("/#internal/", '', $mvars);
$mvars = 'Ticket Updated via email';
if(!($response=$this->getThread()->addNote($mvars, $errors)))
return null;
} else {
if(!($response = $this->getThread()->addResponse($mvars, $errors)))
return null;
}
I am sure Jemson will come up with an update that strips them all out at the same time - but this works for me in the mean time :)