Convert the Abandoned and MergeFail email classes to templates

Convert the AbandonedSender and MergeFailSender classes to use
file based velocity templates which an admin may edit.

Change-Id: I5eae65a46aea074ef25bfc259c013f9be91fdc2f
This commit is contained in:
Martin Fick
2010-07-21 11:46:21 -06:00
parent 382e0a8972
commit 40ed99f805
6 changed files with 99 additions and 14 deletions

View File

@@ -38,15 +38,6 @@ public class MergeFailSender extends ReplyToChangeSender {
@Override
protected void formatChange() throws EmailException {
appendText("Change " + change.getKey().abbreviate());
if (patchSetInfo != null && patchSetInfo.getAuthor() != null
&& patchSetInfo.getAuthor().getName() != null) {
appendText(" by ");
appendText(patchSetInfo.getAuthor().getName());
}
appendText(" FAILED to submit to ");
appendText(change.getDest().getShortName());
appendText(".\n\n");
formatCoverLetter();
appendText(velocifyFile("MergeFail.vm"));
}
}