[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expiring nnimap messages automatically

From: Eric Abrahamsen
Subject: Re: Expiring nnimap messages automatically
Date: Thu, 09 Apr 2020 13:27:52 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eric Abrahamsen <> writes:

> Nicolas Cavigneaux <> writes:
>> Eric Abrahamsen <> writes:
>>>>> Simply removing this entry should be enough to let your server parameter
>>>>> take effect. Delete that and see if it works.
>>>> I did remove it then "C-c C-c". I also hit "s" in groups buffer to save
>>>> my changes in .newsrc.eld.
>>>> I checked that the file was up-to-date and it is.
>>>> I started a new instance of Emacs / Gnus. The 'expiry-wait is really
>>>> gone when I check the group using "G p". But deleting / moving of
>>>> expired email is also gone with it… My expired messages now stay in the
>>>> group.
>>>> I could manually set 'expiry-wait on each group and it would do the job
>>>> but I'm pretty sure it's not the right way .
>>> *sigh*. What's supposed to happen is that this server's value for
>>> `nnmail-expiry-wait' is dynamically bound and consulted while the server
>>> is doing its business. If 'immediate is the value you want for
>>> everything, you can just setq that variable in your top-level gnus
>>> config. Otherwise you can do something like:
>> What variable are you talking about? nnmail-expiry-wait seems OK to me:
>> nnmail-expiry-wait is a variable defined in ‘nnmail.el’.
>> Its value is 'immediate
>> Original value was 7
>>> (setq gnus-parameters '(("^nnimap:.*" (expiry-wait 'immediate))))
>>> To set it just for imap groups.
>> It would be OK. I don't mind being explicit even if it's intended to
>> work without a workaround. So I tried:
>> gnus-parameters is a variable defined in ‘gnus.el’.
>> Its value is (("^nnimap:.*" (expiry-wait 'immediate)))
>> Original value was nil
>> But it doesn't expire anything in my imap groups.
> Okay, first of all I gave you a bum regexp because I didn't test it
> first, my bad! The colon shouldn't be in there, that's blocking it from
> matching the group name. There's no reason for that bit anyway, just
> "^nnimap" should be sufficient.

Bah, how many times before I learn not to post untested code?! It should

(setq gnus-parameters '(("^nnimap" (expiry-wait . immediate))))

Ie the parameter should be set as (car . cdr), not a list, and no quote
on 'immediate.

I still think it's weird that the nnmail-expiry-wait method doesn't
do it, but that at least should get you a working set up.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]