+2002-02-26 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * nnagent.el (nnagent-retrieve-headers): Remove articles with
+ small numbers.
+
2002-02-24 ShengHuo ZHU <zsh@cs.rochester.edu>
* deuglify.el: Fix comments.
(deffoo nnagent-retrieve-headers (articles &optional group server fetch-old)
(let ((file (gnus-agent-article-name ".overview" group))
- arts n)
+ arts n first)
(save-excursion
(gnus-agent-load-alist group)
(setq arts (gnus-sorted-difference
articles (mapcar 'car gnus-agent-article-alist)))
+ ;; Assume that articles with smaller numbers than the first one
+ ;; Agent knows are gone.
+ (setq first (caar gnus-agent-article-alist))
+ (when first
+ (while (and arts (< (car arts) first))
+ (pop arts)))
(set-buffer nntp-server-buffer)
(erase-buffer)
(nnheader-insert-nov-file file (car articles))