info-gnus-english
[Top][All Lists]
Advanced

[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 09:47:47 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Nicolas Cavigneaux <cavigneaux@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Trying going into the *Groups* buffer, putting point on
>> "nnimap+home:INBOX", and hitting "G p" to edit the group parameters. You
>> should see the 'expiry-wait entry in there. How it got in there I
>> couldn't tell you, but Gnus saves group parameters along with marks in
>> your.newsrc.eld file, so that's why you weren't seeing it in your config
>> file.
>
> Oh! I didn't know that .newsrc.eld was storing these info. I learned
> about "G p" too, pretty handy.
>
> So I took a look and the 'expiry-wait was in there.
>
> How do it got there? I played a lot with all kind of Gnus options and
> commands when I started using it. I didn't know what I was doing but
> wanted to discover Gnus features so I played with things I didn't
> understand… Guess I played with 'expiry-wait on this group.

Yup, that often happens.

>> 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:

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

To set it just for imap groups.

Otherwise I could try to fix the bug :)

Eric



reply via email to

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