Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/backend/src/services/IngestionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export class IngestionService {
return null;
}

const sanitizedPath = email.path ? email.path : '';
const sanitizedPath = email.path ? email.path.replace(/\/?$/, '/') : '';
// Use effectiveSource (root) for storage path and DB ownership.
// Child sources are assistants; all content physically belongs to the root.
const emailPath = `${config.storage.openArchiverFolderName}/${effectiveSource.name.replaceAll(' ', '-')}-${effectiveSource.id}/emails/${sanitizedPath}${email.id}.eml`;
Expand Down
Loading