mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Draft from template
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user