@social-mail/social-mail-web-server 1.8.439 → 1.8.441
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/services/emails/IndexEmailService.d.ts.map +1 -1
- package/dist/server/services/emails/IndexEmailService.js +6 -0
- package/dist/server/services/emails/IndexEmailService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/services/emails/IndexEmailService.ts +6 -0
package/package.json
CHANGED
|
@@ -35,6 +35,12 @@ export default class IndexEmailService {
|
|
|
35
35
|
const attachments = await db.appFiles.where({ emailID}, (p) => (x) => x.emailID === p.emailID)
|
|
36
36
|
.toArray();
|
|
37
37
|
for(const att of attachments) {
|
|
38
|
+
const txt = await db.textDocuments
|
|
39
|
+
.statements.select({}, { textDocumentID: att.fileContentID});
|
|
40
|
+
if (txt) {
|
|
41
|
+
await this.insertText(emailID, txt.searchable, "attachment");
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
38
44
|
const tf = await this.tempFileService.downloadAppFile(att);
|
|
39
45
|
const textFile = await this.te.extract(tf);
|
|
40
46
|
for await(const line of textFile.lines()) {
|