We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c42b30 commit f8994aeCopy full SHA for f8994ae
1 file changed
packages/backend/src/services/IngestionService.ts
@@ -575,7 +575,7 @@ export class IngestionService {
575
return null;
576
}
577
578
- const sanitizedPath = email.path ? email.path : '';
+ const sanitizedPath = email.path ? email.path.replace(/\/?$/, '/') : '';
579
// Use effectiveSource (root) for storage path and DB ownership.
580
// Child sources are assistants; all content physically belongs to the root.
581
const emailPath = `${config.storage.openArchiverFolderName}/${effectiveSource.name.replaceAll(' ', '-')}-${effectiveSource.id}/emails/${sanitizedPath}${email.id}.eml`;
0 commit comments