mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 06:01:12 +00:00
Added fail-safe
This commit is contained in:
parent
e49cf7a529
commit
3118a6eb48
1 changed files with 27 additions and 24 deletions
|
@ -68,7 +68,8 @@ public class WorkerDailyRules extends Worker {
|
|||
|
||||
int count = 0;
|
||||
List<Long> mids = db.message().getMessageIdsByFolder(folder.id);
|
||||
for (long mid : mids) {
|
||||
for (long mid : mids)
|
||||
try {
|
||||
EntityMessage message = db.message().getMessage(mid);
|
||||
if (message == null)
|
||||
continue;
|
||||
|
@ -94,6 +95,8 @@ public class WorkerDailyRules extends Worker {
|
|||
if (rule.stop)
|
||||
break;
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
EntityLog.log(context, EntityLog.Type.Rules, folder,
|
||||
|
|
Loading…
Reference in a new issue