Revert "feat: auto-move imported emails to IMAP folder and add 90-day cleanup"

This reverts commit b1b30fe1dd.
This commit is contained in:
2026-06-16 16:19:11 +02:00
parent b1b30fe1dd
commit 14c11bf718
8 changed files with 14 additions and 172 deletions
+2 -7
View File
@@ -232,7 +232,7 @@ export class InboxService {
variant: 'preview' | 'thumbnail',
preferredUsername: string | null,
): Promise<string> {
const { doc, pdfPath } = await this.resolveDocument(id, preferredUsername);
const { doc } = await this.resolveDocument(id, preferredUsername);
if (!Number.isInteger(page) || page < 1 || page > doc.PageCount) {
throw new NotFoundException('Seite nicht gefunden');
}
@@ -244,12 +244,7 @@ export class InboxService {
try {
await fs.access(filePath);
} catch {
try {
await this.barcodeScanner.ensurePageCache(doc.Id, pdfPath);
await fs.access(filePath);
} catch {
throw new NotFoundException('Seite nicht gefunden');
}
throw new NotFoundException('Seite nicht gefunden');
}
return filePath;
}