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

Method formatMessage

src/controller/editor.controller.js:399–413  ·  view source on GitHub ↗
(msg, options)

Source from the content-addressed store, hash-verified

397 }
398
399 formatMessage(msg, options) {
400 if (options.quotedMailIndent) {
401 msg = msg.replace(/^(.|\n)/gm, '> $&');
402 }
403 if (options.quotedMailHeader) {
404 msg = `${options.quotedMailHeader}\n${msg}`;
405 }
406 if (options.quotedMailIndent || options.quotedMailHeader) {
407 msg = `\n\n${msg}`;
408 }
409 if (options.predefinedText) {
410 msg = `${msg}\n\n${options.predefinedText}`;
411 }
412 return msg;
413 }
414
415 async decryptFiles(encFiles) {
416 try {

Callers 2

decryptArmoredMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected