|
|
@ -880,8 +880,9 @@ public interface DaoMessage {
|
|
|
|
" (SELECT * FROM operation o" +
|
|
|
|
" (SELECT * FROM operation o" +
|
|
|
|
" JOIN message m ON m.id = o.message" +
|
|
|
|
" JOIN message m ON m.id = o.message" +
|
|
|
|
" WHERE o.account = message.account" +
|
|
|
|
" WHERE o.account = message.account" +
|
|
|
|
" AND o.name = '" + EntityOperation.MOVE + "'" +
|
|
|
|
" AND o.name IN ('" + EntityOperation.MOVE + "', '" + EntityOperation.COPY + "')" +
|
|
|
|
" AND m.msgid = message.msgid)")
|
|
|
|
" AND m.msgid = message.msgid)"
|
|
|
|
|
|
|
|
)
|
|
|
|
int deleteOrphans(long folder, long now);
|
|
|
|
int deleteOrphans(long folder, long now);
|
|
|
|
|
|
|
|
|
|
|
|
@Query("SELECT * FROM message" +
|
|
|
|
@Query("SELECT * FROM message" +
|
|
|
|