Browse Source

Cleanup

main
M66B 6 years ago
parent
commit
cbc4bfc22e
1 changed files with 0 additions and 13 deletions
  1. +0
    -13
      app/src/main/java/eu/faircode/email/DaoMessage.java

+ 0
- 13
app/src/main/java/eu/faircode/email/DaoMessage.java View File

@ -139,24 +139,11 @@ public interface DaoMessage {
" OR message.msgid = :reference)") " OR message.msgid = :reference)")
List<EntityMessage> getMessageByMsgId(long account, String msgid, String reference); List<EntityMessage> getMessageByMsgId(long account, String msgid, String reference);
@Query("SELECT message.* FROM message" +
" JOIN folder ON folder.id = message.folder" +
" WHERE message.account = :account" +
" AND message.thread = :thread" +
" AND folder.type <> '" + EntityFolder.OUTBOX + "'" +
" AND folder.type <> '" + EntityFolder.DRAFTS + "'")
List<EntityMessage> getMessageByThread(long account, String thread);
@Query("SELECT *" + @Query("SELECT *" +
" FROM message" + " FROM message" +
" WHERE folder = :folder") " WHERE folder = :folder")
List<EntityMessage> getMessageByFolder(long folder); List<EntityMessage> getMessageByFolder(long folder);
@Query("SELECT id FROM message" +
" WHERE folder = :folder" +
" ORDER BY message.received DESC, message.sent DESC")
List<Long> getMessageIDs(long folder);
@Query("SELECT message.*" + @Query("SELECT message.*" +
", account.name AS accountName, account.color AS accountColor" + ", account.name AS accountName, account.color AS accountColor" +
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" + ", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +


Loading…
Cancel
Save