On Wed, Sep 03 2025, James Thomas <[email protected]> wrote: > 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. Not if you use put the following in your ‘gnus.el’ file: --8<---------------cut here---------------start------------->8--- (gnus-demon-add-handler 'gnus-demon-scan-news 3 t) (gnus-demon-init) --8<---------------cut here---------------end--------------->8--- > 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]>")) -- English is not my native/mother language. I can read and understand English well, but I have problems expressing my thoughts in it. Please, bear with me. Sincerely, Pyromania. PGP fingerprint = 2B24 291E 0637 4D2E 0D14 9EFC D7B3 10D4 5C9D 5892 () ASCII ribbon campaign - against HTML e-mail /\ www.asciiribbon.org - against proprietary attachments
