Colin Baxter writes:

> I have a group called `mail.expiry' that I use for emails that are
> awaiting final expiry. Every now and again I have to compact the group
> in order to see old messages.
>
> Is there anything I can put in my ~/.gnus.el that will always keep the
> group compacted? At present the relevant part of my ~/.gnus.el is simply
> (setq nnmail-expiry-target "nnml:mail.expiry").

Pyromania writes:

> On Thu, Jun 05 2025, Colin Baxter wrote:
>
>> ...
>
> I have an ‘nnml:mail.expiry’, too.  Is compacting it required?  Does it
> provide any user-facing benefit?
>
> If so, one can use a timer, or use ‘gnus-demon-add-handler’ and
> a custom demon function.

A timer won't persist across sessions, which are likely in the weekly
intervals you need for this. The only way to do that _I_ know of is:

(progn
 (require 'gnus-group)
 (gnus-group-read-ephemeral-group "nntp+news.gmane.io:gmane.emacs.devel"
 '(nntp "news.gmane.io") nil nil nil nil nil 1)
 (gnus-summary-goto-article "<[email protected]>"))

--

Reply via email to