titanism
titanism
Okay @andris9 this appears to be due to 3 characters followed by the line break. Any less than 3 is OK, and any more than 3 is OK. So ending...
@andris9 the bug is somewhere in here I think due to length/integer comparison
I think that this might be the culprit: ```js headerPos = i - lblen + 1; ``` Because it's using `4` as a hard-coded value, it's doing `i` which could...
This happens for these two cases (note that there are NO line breaks at the end and so that case is ruled out): > Input: ``` Message-ID: To: [email protected] List-Unsubscribe:...
Sorry @louis-lau 🤦
I think (?) I found the fix... ```diff - if (data.length - 1 > headerPos) { + if (data.length - 1 >= headerPos) { let chunk = data.slice(headerPos); this.bodySize +=...
PR submitted at https://github.com/nodemailer/wildduck/pull/782
We would need @andris9 to confirm, but #782 had fixed my edge case, but he had mentioned there was another.