We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Ditesh.
Thank you for the library.
I've encountered a situation where POP3Client.prototype.uidl get stuck in a loop.
while(true) { if ( (offset > endOffset) break; newoffset = data.indexOf("\r\n", offset); listitem = data.substr(offset, newoffset-offset); listitem = listitem.split(" "); returnValue[listitem[0]] = listitem[1]; offset = newoffset + 2; }
the (offset > endOffSet) is never met as when the last item is added offset is smaller than endOffset.
I patched it as follows:
while(true) { if ( (offset > endOffset) || (newoffset == -1) ) break; newoffset = data.indexOf("\r\n", offset); listitem = data.substr(offset, newoffset-offset); listitem = listitem.split(" "); returnValue[listitem[0]] = listitem[1]; offset = newoffset + 2; }
There might be a better way.
HTH
The text was updated successfully, but these errors were encountered:
Fixed issue #1
269e36f
Thanks for the feedback. I've committed a fix.
Could you help test out commit 269e36f ?
Sorry, something went wrong.
Released 0.1.4, with several other fixes.
No branches or pull requests
Hi Ditesh.
Thank you for the library.
I've encountered a situation where POP3Client.prototype.uidl get stuck in a loop.
the (offset > endOffSet) is never met as when the last item is added offset is smaller than endOffset.
I patched it as follows:
There might be a better way.
HTH
The text was updated successfully, but these errors were encountered: