mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 23:50:58 +01:00
Check for duplicates in archive only
This commit is contained in:
@@ -128,7 +128,7 @@ public interface DaoMessage {
|
||||
", CASE WHEN folder.type = '" + EntityFolder.DRAFTS + "' THEN 1 ELSE 0 END AS drafts" +
|
||||
", 1 AS visible" +
|
||||
|
||||
", ((folder.type = '" + EntityFolder.ARCHIVE + "' OR folder.type = '" + EntityFolder.SENT + "')" +
|
||||
", (folder.type = '" + EntityFolder.ARCHIVE + "'" +
|
||||
" AND EXISTS (" +
|
||||
" SELECT * FROM message m1" +
|
||||
" JOIN folder f1 ON f1.id = m1.folder" +
|
||||
|
||||
Reference in New Issue
Block a user