mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Added bacth seen/flagged
This commit is contained in:
@@ -30,13 +30,15 @@ import java.util.List;
|
||||
@Dao
|
||||
public interface DaoOperation {
|
||||
String priority = "CASE" +
|
||||
" WHEN operation.name = '" + EntityOperation.BODY + "' THEN -4" +
|
||||
" WHEN operation.name = '" + EntityOperation.ATTACHMENT + "' THEN -3" +
|
||||
" WHEN operation.name = '" + EntityOperation.HEADERS + "' THEN -2" +
|
||||
" WHEN operation.name = '" + EntityOperation.RAW + "' THEN -2" +
|
||||
" WHEN operation.name = '" + EntityOperation.SYNC + "' AND folder.account IS NULL THEN -1" + // Outbox
|
||||
" WHEN operation.name = '" + EntityOperation.BODY + "' THEN -5" +
|
||||
" WHEN operation.name = '" + EntityOperation.ATTACHMENT + "' THEN -4" +
|
||||
" WHEN operation.name = '" + EntityOperation.HEADERS + "' THEN -3" +
|
||||
" WHEN operation.name = '" + EntityOperation.RAW + "' THEN -3" +
|
||||
" WHEN operation.name = '" + EntityOperation.SYNC + "' AND folder.account IS NULL THEN -2" + // Outbox
|
||||
" WHEN operation.name = '" + EntityOperation.ADD + "' THEN -1" +
|
||||
" WHEN operation.name = '" + EntityOperation.DELETE + "' THEN -1" +
|
||||
// Other operations: seen, answered, flag, keyword, label, subscribe, send, rule
|
||||
" WHEN operation.name = '" + EntityOperation.SYNC + "' AND folder.account IS NOT NULL THEN 1" +
|
||||
// Other operations: add, delete, seen, answered, flag, keyword, label, subscribe, send
|
||||
" WHEN operation.name = '" + EntityOperation.FETCH + "' THEN 2" +
|
||||
" WHEN operation.name = '" + EntityOperation.EXISTS + "' THEN 3" +
|
||||
" WHEN operation.name = '" + EntityOperation.REPORT + "' THEN 3" +
|
||||
|
||||
Reference in New Issue
Block a user