I originally posted this as an issue here: emailjs/emailjs-imap-handler#20
To summarize, for a query like this:
t uid fetch 585599 (body.peek[1.1] body.peek[1.2])
If the result is something like this:
* 126015 FETCH (UID 585599 BODY[1.2] {0}
BODY[1.1] {0}
)
t OK Success
Then Imap.prototype._iterateIncomingBuffer() gets confused and does not properly look for additional literals since the only way this can happen is if control goes into the "if (diff)" conditional, but it can't since diff will always be zero.
I originally posted this as an issue here: emailjs/emailjs-imap-handler#20
To summarize, for a query like this:
If the result is something like this:
Then Imap.prototype._iterateIncomingBuffer() gets confused and does not properly look for additional literals since the only way this can happen is if control goes into the "
if (diff)
" conditional, but it can't since diff will always be zero.