Skip to content

Commit

Permalink
filtering-handler, add raw to call to addmessage. Feature: Encrypted …
Browse files Browse the repository at this point in the history
…mailboxes added
NickOvt committed Nov 11, 2024
1 parent e1fd1e4 commit 076f2c6
Showing 2 changed files with 562 additions and 390 deletions.
4 changes: 3 additions & 1 deletion lib/filter-handler.js
Original file line number Diff line number Diff line change
@@ -143,6 +143,8 @@ class FilterHandler {

let prepared;

let raw = Buffer.concat(chunks, chunklen);

if (options.mimeTree) {
if (options.mimeTree && options.mimeTree.header) {
// remove old headers
@@ -157,7 +159,6 @@ class FilterHandler {
mimeTree: options.mimeTree
});
} else {
let raw = Buffer.concat(chunks, chunklen);
prepared = await this.prepareMessage({
raw
});
@@ -661,6 +662,7 @@ class FilterHandler {
date: false,
flags,

raw,
rawchunks
};

948 changes: 559 additions & 389 deletions lib/message-handler.js

Large diffs are not rendered by default.

0 comments on commit 076f2c6

Please sign in to comment.