just a note for future googlers, if you wish to update the status of a message when a ticket receives an email reply.
the mod is
inside /includes/class.ticket
around line 1700 (in version 1.12)
add into function onMessage at top
$this->status = 1;
before the $this->save;