Skip to content
Merged
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
6 changes: 6 additions & 0 deletions frontend/lib/CPIM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ export class CPIM {
cpim.fileURL = data.getAttribute("url");
}

// text/plain bodyText extraction — must match behavior of the equivalent PHP CPIM parser
const innerType = (cpim.getHeader('content-type') || '').toLowerCase();
if (innerType.startsWith('text/plain')) {
cpim.bodyText = parts[2];
}

return cpim;
}

Expand Down
Loading