MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / parseSignedMessage

Function parseSignedMessage

src/modules/mime.js:91–95  ·  view source on GitHub ↗
(raw, encoding)

Source from the content-addressed store, hash-verified

89 * @return {Object<message, signedMessage, attachments>} parsed content separated in message, signed content and attachments
90 */
91export async function parseSignedMessage(raw, encoding) {
92 const {message, attachments, parsed} = await parseMIME(raw, encoding);
93 const [{signedMessage}] = filterBodyParts(parsed, 'signed');
94 return {message, signedMessage, attachments};
95}
96
97// attribution: https://github.com/whiteout-io/mail-html5
98export function filterBodyParts(bodyParts, type, result) {

Callers 2

mime.test.jsFile · 0.90

Calls 2

parseMIMEFunction · 0.85
filterBodyPartsFunction · 0.85

Tested by

no test coverage detected