Add hook for email subject

refers to http://www.mantisbt.org/bugs/view.php?id=15648