1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Expression: plain text for subject and text

This commit is contained in:
M66B 2024-04-19 07:41:30 +02:00
parent 9bac559ee0
commit 9b8638f3f4

View file

@ -795,8 +795,8 @@ public class EntityRule {
Expression expression = new Expression(eval, configuration)
.with("to", to)
.with("from", from)
.with("subject", message == null ? null : Arrays.asList(message.subject))
.with("text", doc == null ? null : Arrays.asList(doc.text()));
.with("subject", message == null ? null : message.subject)
.with("text", doc == null ? null : doc.text());
if (message != null) {
boolean hasAttachments = false;