Draft from template

This commit is contained in:
M66B
2019-01-09 18:45:53 +00:00
parent 3d9c78402d
commit dd61347b95
4 changed files with 54 additions and 3 deletions

View File

@@ -1520,6 +1520,13 @@ public class FragmentCompose extends FragmentEx {
result.draft.subject = args.getString("subject", "");
body = args.getString("body", "");
body = body.replaceAll("\\r?\\n", "<br />");
if (answer > 0) {
String text = db.answer().getAnswer(answer).text;
text = text.replace("$name$", "");
text = text.replace("$email$", "");
body = text + body;
}
} else {
result.draft.thread = ref.thread;