mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
FTS index without content
This commit is contained in:
@@ -334,8 +334,7 @@ public interface DaoMessage {
|
||||
@Transaction
|
||||
@Query("SELECT message.id FROM message" +
|
||||
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
||||
" WHERE content" +
|
||||
" AND NOT fts" +
|
||||
" WHERE NOT fts" +
|
||||
" AND folder.type <> '" + EntityFolder.OUTBOX + "'" +
|
||||
" ORDER BY message.received")
|
||||
Cursor getMessageFts();
|
||||
|
||||
@@ -81,10 +81,11 @@ public class WorkerFts extends Worker {
|
||||
continue;
|
||||
}
|
||||
|
||||
File file = message.getFile(context);
|
||||
String text = HtmlHelper.getFullText(file);
|
||||
if (text == null)
|
||||
text = "";
|
||||
String text = null;
|
||||
if (message.content) {
|
||||
File file = message.getFile(context);
|
||||
text = HtmlHelper.getFullText(file);
|
||||
}
|
||||
|
||||
try {
|
||||
sdb.beginTransaction();
|
||||
|
||||
Reference in New Issue
Block a user