mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Skip similar messages in same folder
This commit is contained in:
parent
730c9aed8e
commit
b251de1a6d
1 changed files with 4 additions and 2 deletions
|
@ -422,8 +422,10 @@ public interface DaoMessage {
|
|||
List<EntityMessage> getMessagesByInReplyTo(long account, String inreplyto);
|
||||
|
||||
@Query("SELECT * FROM message" +
|
||||
" WHERE account = :account" +
|
||||
" AND (id = :id OR msgid = :msgid)")
|
||||
" LEFT JOIN message AS base ON base.id = :id" +
|
||||
" WHERE message.account = :account" +
|
||||
" AND (message.id = :id" +
|
||||
" OR (message.msgid = :msgid AND message.folder <> base.folder))")
|
||||
List<EntityMessage> getMessagesBySimilarity(long account, long id, String msgid);
|
||||
|
||||
@Query("SELECT COUNT(*) FROM message" +
|
||||
|
|
Loading…
Reference in a new issue