Tim Landscheidt writes:
> I'm experimenting with Gnus Agent, and I noticed that an FAQ
> that gets published monthly with correct Supersedes: headers
> is shown twice in my Summary buffer.
>
> Before I dive into this further, how does the Agent handle
> supersedes and/or cancellations? Are messages that have
> been downloaded in the past, but have been removed from the
> server since, supposed to be "deleted" in the local Summary
> buffer? To put it another way, is the Agent's local
> ".overview" supposed to be "synchronized" with the server's
> overview by default, or is it supposed to be a superset of
> the server's oerview?
(Total guesswork, this - yes, I'm too lazy to read the code as well)
Likely a superset, because the message that supersedes would (should)
have a new 'article number'. The old one ought to remain as it was
because this whole thing is just a 'suggestion', after all. In which
case, this (been a while since last tested) might be of use:
--8<---------------cut here---------------start------------->8---
(defun my/gnus-agent-unfetch-articles (n)
"Delete the local copy of the selected agent articles."
(interactive "P" gnus-summary-mode)
(when (yes-or-no-p "Delete local copies? ")
(let ((articles (gnus-summary-work-articles n)))
;; TODO: Does this account for -agent-as-cache also?
(gnus-agent-unfetch-articles gnus-newsgroup-name articles))))
--8<---------------cut here---------------end--------------->8---
--