", folder.name AS folderName, folder.color AS folderColor, folder.display AS folderDisplay, folder.type AS folderType, folder.read_only AS folderReadOnly"+
", IFNULL(identity.display, identity.name) AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize"+
", '[' || group_concat(message.`from`, ',') || ']' AS senders"+
", '[' || group_concat(message.`to`, ',') || ']' AS recipients"+
", COUNT(message.id) AS count"+
", SUM(1 - message.ui_seen) AS unseen"+
", SUM(1 - message.ui_flagged) AS unflagged"+
@ -116,6 +117,7 @@ public interface DaoMessage {
", folder.name AS folderName, folder.color AS folderColor, folder.display AS folderDisplay, folder.type AS folderType, folder.read_only AS folderReadOnly"+
", IFNULL(identity.display, identity.name) AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize"+
", '[' || group_concat(message.`from`, ',') || ']' AS senders"+
", '[' || group_concat(message.`to`, ',') || ']' AS recipients"+
", COUNT(message.id) AS count"+
", SUM(1 - message.ui_seen) AS unseen"+
", SUM(1 - message.ui_flagged) AS unflagged"+
@ -178,6 +180,7 @@ public interface DaoMessage {
", folder.name AS folderName, folder.color AS folderColor, folder.display AS folderDisplay, folder.type AS folderType, folder.read_only AS folderReadOnly"+
", IFNULL(identity.display, identity.name) AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize"+
", message.`from` AS senders"+
", message.`to` AS recipients"+
", 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"+
@ -363,6 +366,7 @@ public interface DaoMessage {
", folder.name AS folderName, folder.color AS folderColor, folder.display AS folderDisplay, folder.type AS folderType, folder.read_only AS folderReadOnly"+
", IFNULL(identity.display, identity.name) AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize"+
", message.`from` AS senders"+
", message.`to` AS recipients"+
", 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"+
@ -393,6 +397,7 @@ public interface DaoMessage {
", folder.name AS folderName, folder.color AS folderColor, folder.display AS folderDisplay, folder.type AS folderType, folder.read_only AS folderReadOnly"+
", IFNULL(identity.display, identity.name) AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize"+