Hello,

On Mon 15 Dec 2025 at 03:51am +01, Nickolai Dobrynin wrote:

> I just deleted my .newsrc.eld file (which was done by necessity), and
> now all my group parameters have evaporated since I had them set through
> the "Customize interface", via G c.
>
> How can I program them into the .gnus.el file instead? Following
>
> https://www.gnu.org/software/emacs/manual/html_node/gnus/Group-Parameters.html
>
> I added, e.g.,
>
> (setq gnus-parameters
>       '(("^nnimap\\+NDobryninGMail:INBOX$"
>          (expiry-target . "nnimap+NDobryninGMail:[Gmail]/Trash")
>        (expiry-wait . immediate))))
>
> but GNUS did not pick this up. I started exploring and changed the regex
> to ".*". No luck. Moved the statement to .emacs. Nothing.
>
> I've been trying to get this straight for some time now. Using the
> interfaces each time is inconvenient and error-prone. Can someone please
> explain the proper way of doing this programmatically?

I do (setq gnus-parameters ...) in my .gnus.el and it works fine, so
maybe the contents of your parameters are the problem.

> Also, how can I programmatically unsubscribe from a specific group? In
> my case, from the trash folder.

I have something in gnus-started-hook to handle this sort of thing.

-- 
Sean Whitton

  • ... Nickolai Dobrynin
    • ... Sean Whitton
      • ... Michael Heerdegen
        • ... Nickolai Dobrynin
          • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
            • ... Nickolai Dobrynin
              • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
                • ... Nickolai Dobrynin
                • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
            • ... Tim Landscheidt
      • ... Nickolai Dobrynin
        • ... Sean Whitton

Reply via email to