|
|
@ -489,7 +489,10 @@ public interface DaoMessage {
|
|
|
|
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
|
|
|
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
|
|
|
" WHERE account.`synchronize`" +
|
|
|
|
" WHERE account.`synchronize`" +
|
|
|
|
" AND folder.notify" +
|
|
|
|
" AND folder.notify" +
|
|
|
|
" AND (account.created IS NULL OR message.received > account.created OR message.sent > account.created)" +
|
|
|
|
" AND (account.created IS NULL" +
|
|
|
|
|
|
|
|
" OR message.received > account.created" +
|
|
|
|
|
|
|
|
" OR message.sent > account.created" +
|
|
|
|
|
|
|
|
" OR message.ui_unsnoozed)" +
|
|
|
|
" AND message.notifying <> " + EntityMessage.NOTIFYING_IGNORE +
|
|
|
|
" AND message.notifying <> " + EntityMessage.NOTIFYING_IGNORE +
|
|
|
|
" AND (message.notifying <> 0 OR NOT (message.ui_seen OR message.ui_ignored OR message.ui_hide))" +
|
|
|
|
" AND (message.notifying <> 0 OR NOT (message.ui_seen OR message.ui_ignored OR message.ui_hide))" +
|
|
|
|
" ORDER BY message.received DESC")
|
|
|
|
" ORDER BY message.received DESC")
|
|
|
|