Optimization

This commit is contained in:
M66B
2023-09-04 15:38:05 +02:00
parent 9ca6034855
commit 224525d88e
6 changed files with 26 additions and 39 deletions

View File

@@ -1006,11 +1006,7 @@ public class EntityRule {
throw new IllegalArgumentException("Rule template not found name=" + rule.name);
}
EntityFolder outbox = db.folder().getOutbox();
if (outbox == null) {
outbox = EntityFolder.getOutbox();
outbox.id = db.folder().insertFolder(outbox);
}
EntityFolder outbox = EntityFolder.getOutbox(context);
Address[] from = new InternetAddress[]{new InternetAddress(identity.email, identity.name, StandardCharsets.UTF_8.name())};