mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Make sure answers are being sent
This commit is contained in:
@@ -104,6 +104,8 @@ public class EntityRule {
|
||||
static final String EXTRA_SENDER = "sender";
|
||||
static final String EXTRA_SUBJECT = "subject";
|
||||
|
||||
private static final long SEND_DELAY = 5000L; // milliseconds
|
||||
|
||||
boolean matches(Context context, EntityMessage message, Message imessage) throws MessagingException {
|
||||
try {
|
||||
JSONObject jcondition = new JSONObject(condition);
|
||||
@@ -422,6 +424,9 @@ public class EntityRule {
|
||||
|
||||
EntityOperation.queue(context, reply, EntityOperation.SEND);
|
||||
|
||||
// Batch send operations, wait until after commit
|
||||
ServiceSend.schedule(context, SEND_DELAY);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user