Skip to content

Commit

Permalink
fix(mime-head): Increased allowd MIME node header size to 2MB
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Feb 2, 2024
1 parent b999e07 commit 26e4896
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/mail-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const util = require('util');
const libmime = require('libmime');
const StreamHash = require('./stream-hash');

const MAX_HEAD_SIZE = 2 * 1024 * 1024;

// Processes a message stream and stores it to queue

class MailDrop {
Expand Down Expand Up @@ -109,7 +111,8 @@ class MailDrop {

let raw = new PassThrough();
let splitter = new mailsplit.Splitter({
ignoreEmbedded: true
ignoreEmbedded: true,
maxHeadSize: MAX_HEAD_SIZE
});
let streamer = new PassThrough({
objectMode: true
Expand Down

0 comments on commit 26e4896

Please sign in to comment.