Report spam similar

This commit is contained in:
M66B
2025-01-09 10:55:10 +01:00
parent 4a04357d73
commit ff305ddd93
2 changed files with 15 additions and 1 deletions

View File

@@ -468,6 +468,11 @@ public interface DaoMessage {
" AND (:to IS NULL OR received IS NULL OR received < :to)")
List<TupleThreadInfo> getThreadInfo(long account, List<String> msgids, Long from, Long to);
@Query("SELECT * FROM message" +
" WHERE folder = :folder" +
" AND sender = :sender")
List<EntityMessage> getMessagesBySender(long folder, String sender);
@Query("SELECT * FROM message" +
" WHERE account = :account" +
" AND sender = :sender" +