d6c673ed4e
The entry in the assign_grades table contains grades feedback and other settings such as locked. Only send the student an email about new feedback if it is actually grades or feedback that has been added. This is done by using another state for the mailed flag (2) which means "unset".