mscdex/node-imap — pull request #251 by rossj (2013-07-06 15:21:03+00:00)
Title: Fix exception when all fetch bodies return at once

Fixes a "TypeError: Cannot set property 'ended' of undefined" exception on line 1118 of Connection.js when `msg` is `undefined`. This can happen if all fetch parts are persent the first time through and no fetchCache entry is made.