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
  • Loading branch information
NickOvt committed Nov 11, 2024
1 parent e1fd1e4 commit 076f2c6
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand All @@ -157,7 +159,6 @@ class FilterHandler {
mimeTree: options.mimeTree
});
} else {
let raw = Buffer.concat(chunks, chunklen);
prepared = await this.prepareMessage({
raw
});
Expand Down Expand Up @@ -661,6 +662,7 @@ class FilterHandler {
date: false,
flags,

raw,
rawchunks
};

Expand Down
Loading

0 comments on commit 076f2c6

Please sign in to comment.