|
|
|
@ -49,7 +49,7 @@ public interface DaoMessage {
|
|
|
|
|
@Query("SELECT message.*" +
|
|
|
|
|
", account.name AS accountName, IFNULL(identity.color, account.color) AS accountColor, account.notify AS accountNotify" +
|
|
|
|
|
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
|
|
|
|
", identity.name AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize" +
|
|
|
|
|
", identity.name AS identityName, identity.email AS identityEmail" +
|
|
|
|
|
", COUNT(message.id) AS count" +
|
|
|
|
|
", " + unseen_unified + " AS unseen" +
|
|
|
|
|
", " + unflagged_unified + " AS unflagged" +
|
|
|
|
@ -94,7 +94,7 @@ public interface DaoMessage {
|
|
|
|
|
@Query("SELECT message.*" +
|
|
|
|
|
", account.name AS accountName, IFNULL(identity.color, account.color) AS accountColor, account.notify AS accountNotify" +
|
|
|
|
|
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
|
|
|
|
", identity.name AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize" +
|
|
|
|
|
", identity.name AS identityName, identity.email AS identityEmail" +
|
|
|
|
|
", COUNT(message.id) AS count" +
|
|
|
|
|
", " + unseen_folder + " AS unseen" +
|
|
|
|
|
", " + unflagged_folder + " AS unflagged" +
|
|
|
|
@ -131,7 +131,7 @@ public interface DaoMessage {
|
|
|
|
|
@Query("SELECT message.*" +
|
|
|
|
|
", account.name AS accountName, IFNULL(identity.color, account.color) AS accountColor, account.notify AS accountNotify" +
|
|
|
|
|
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
|
|
|
|
", identity.name AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize" +
|
|
|
|
|
", identity.name AS identityName, identity.email AS identityEmail" +
|
|
|
|
|
", 1 AS count" +
|
|
|
|
|
", CASE WHEN message.ui_seen THEN 0 ELSE 1 END AS unseen" +
|
|
|
|
|
", CASE WHEN message.ui_flagged THEN 0 ELSE 1 END AS unflagged" +
|
|
|
|
@ -237,7 +237,7 @@ public interface DaoMessage {
|
|
|
|
|
@Query("SELECT message.*" +
|
|
|
|
|
", account.name AS accountName, identity.color AS accountColor, account.notify AS accountNotify" +
|
|
|
|
|
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
|
|
|
|
", identity.name AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize" +
|
|
|
|
|
", identity.name AS identityName, identity.email AS identityEmail" +
|
|
|
|
|
", 1 AS count" +
|
|
|
|
|
", CASE WHEN message.ui_seen THEN 0 ELSE 1 END AS unseen" +
|
|
|
|
|
", CASE WHEN message.ui_flagged THEN 0 ELSE 1 END AS unflagged" +
|
|
|
|
@ -255,7 +255,7 @@ public interface DaoMessage {
|
|
|
|
|
@Query("SELECT message.*" +
|
|
|
|
|
", account.name AS accountName, IFNULL(identity.color, account.color) AS accountColor, account.notify AS accountNotify" +
|
|
|
|
|
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
|
|
|
|
", identity.name AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize" +
|
|
|
|
|
", identity.name AS identityName, identity.email AS identityEmail" +
|
|
|
|
|
", 1 AS count" +
|
|
|
|
|
", 1 AS unseen" +
|
|
|
|
|
", 0 AS unflagged" +
|
|
|
|
|