Browse Source

Don't decrypt when saving message/rfc822 attachment. See https://bugzilla.mozilla.org/show_bug.cgi?id=1689326.

1.1.101
Jorg Knobloch 1 year ago
parent
commit
2a9efd9335
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      addon/content/pEpMimeDecrypt.js

+ 6
- 0
addon/content/pEpMimeDecrypt.js View File

@ -40,6 +40,12 @@ MimeDecrypt.prototype = {
},
onStopRequest(request, status) {
if (this.uri && this.uri.spec.includes("filename=")) {
// This is a save operation of a message/rfc822 attachment. Just return the original text.
this.proxy.outputDecryptedData(this.inBuffer, this.inBuffer.length);
return;
}
// Multiple message selection uses "header=filter&emitter=js", but ignores encrypted parts later.
// So we short-circuit it here.
// Gloda uses "header=filter&emitter=js&examineEncryptedParts=true" since we patched it in our experiment.


Loading…
Cancel
Save