Skip to content

Commit

Permalink
Merge pull request #32 from devchanki/master
Browse files Browse the repository at this point in the history
Sometimes doesn't parsing emails
  • Loading branch information
agsh authored May 16, 2024
2 parents 719b9dc + f174933 commit 08f6535
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions __mocks__/tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ CjxIVE1MPjxCT0RZPjxkaXY+MTIzPC9kaXY+PGRpdj4xMjM8L2Rpdj48ZGl2IGRhdGEtc2lnbmF0
dXJlLXdpZGdldD0iY29udGFpbmVyIj48ZGl2IGRhdGEtc2lnbmF0dXJlLXdpZGdldD0iY29udGVu
dCI+PGRpdj4tLTxicj5ZYXBvcGxlIFlhcG9wbGU8L2Rpdj48L2Rpdj48L2Rpdj48L0JPRFk+PC9I
VE1MPgo=
----ALT--e2F8f5F19Ae0d3Ad5402B90c94Da42261610599299--
.` + '\r\n';
----ALT--e2F8f5F19Ae0d3Ad5402B90c94Da42261610599299--`+ '\r\n.\r\n';

let messages = Array.from(new Array(4)).fill(msg);

Expand Down
3 changes: 1 addition & 2 deletions lib/yapople.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ function onData(data) {
this.flow = Buffer.concat([this.flow, data]); // append chunk to buffer

if (
this.flow.slice(this.flow.length - 3).toString() === '.\r\n' ||
sData.substr(-3) === '.\r\n'
this.flow.slice(this.flow.length - 5).toString() === '\r\n.\r\n' || sData.substr(-5) === '\r\n.\r\n'
) {
this.flow = this.flow.slice(0, this.flow.length - 5);
if (this.mailparser) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yapople",
"version": "0.4.8",
"version": "0.4.9",
"author": "Andrew D.Laptev <a.d.laptev@gmail.com>",
"description": "Yet another POP3 library",
"main": "lib/yapople.js",
Expand Down

0 comments on commit 08f6535

Please sign in to comment.