Notify mailer refactor

王权利请求将github/fork/rspeicher/refactor_notify合并到master

Created by: rspeicher

There was a lot of duplication in the Notify mailer, and some of it was unavoidable, but most of it wasn't, so I hope this will improve the situation a bit.

合并请求报告