* nnimap.el (nnimap-finish-retrieve-group-infos): Protect against
groups that have no articles.
+ (nnimap-request-article): Check that we really got an article when we
+ requested one.
* gnus-agent.el (gnus-agent-load-alist): Nix out the alist if the file
doesn't exist.
(if (member "IMAP4REV1" (nnimap-capabilities nnimap-object))
"UID FETCH %d BODY.PEEK[]"
"UID FETCH %d RFC822.PEEK")
- article)))
+ article))
+ ;; Check that we really got an article.
+ (goto-char (point-min))
+ (unless (looking-at "\\* [0-9]+ FETCH")
+ (setq result nil)))
(let ((buffer (nnimap-find-process-buffer (current-buffer))))
(when (car result)
(with-current-buffer (or to-buffer nntp-server-buffer)