* nnimap.el (nnimap-insert-partial-structure): New function.
(nnimap-get-partial-article): New function.
(nnimap-request-article): Use it.
+ (nnimap-wait-for-response): Return whether the wait was successful.
+ (nnimap-finish-retrieve-group-infos): Don't do anything if the
+ retrieval wasn't successful.
* mm-decode.el (mm-with-part): Protect against killed buffers.