Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Nicolas Cavigneaux <cavigneaux@gmail.com>
Cc: info-gnus-english@gnu.org
Subject: Re: Expiring nnimap messages automatically
Date: Thu, 09 Apr 2020 13:23:11 -0700	[thread overview]
Message-ID: <87imi8flxs.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <m21rowzci3.fsf@gmail.com> (Nicolas Cavigneaux's message of "Thu,  09 Apr 2020 21:26:44 +0200")

Nicolas Cavigneaux <cavigneaux@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> 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.

Second of all, even with a good regexp, it won't return
the correct parameter, apparently because of a bug in the code. I'll
open a bug report for this.
 
>> Otherwise I could try to fix the bug :)
>
> That would be really kind of you but I don't want to bother you with
> this. You already spent a lot of time helping me.

No worries, this is the "help users" group, besides which there's at
least one real bug in here.

> Moreover I'm maybe doing something wrong. It seems that I'm the only one
> facing this "bug".
>
> As I said I can set 'expiry-wait manually for each group. It's clearly
> not the most effective way of achieving my goal but it would work.
>
> By reading your advice I feel like I'm doing something wrong, it should work.

Yes, all of these methods (setting `gnus-parameters', setting
`nnmail-expiry-wait' globally, setting `nnmail-expiry-wait' as a server
parameter) should work. Possibly you've done something funny somewhere,
but the fact that the first method has already uncovered a bug makes me
suspicious of the rest of it. I'll ask on gnus.general (I feel like
there's more eyes on that group) what other people are using, and make
sure something works.

E

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2020-04-09 20:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-07  8:42 Nicolas Cavigneaux
2020-04-07 17:13 ` Eric Abrahamsen
2020-04-07 18:24   ` Nicolas Cavigneaux
2020-04-07 19:49     ` Eric Abrahamsen
2020-04-07 20:22       ` Nicolas Cavigneaux
2020-04-07 21:29         ` Eric Abrahamsen
2020-04-07 22:32           ` Nicolas Cavigneaux
2020-04-08  3:45             ` Eric Abrahamsen
2020-04-08  8:38               ` Nicolas Cavigneaux
2020-04-08 14:55                 ` Eric Abrahamsen
2020-04-09  8:22                   ` Nicolas Cavigneaux
2020-04-09 16:47                     ` Eric Abrahamsen
2020-04-09 19:26                       ` Nicolas Cavigneaux
2020-04-09 20:23                         ` Eric Abrahamsen [this message]
2020-04-09 20:27                           ` Eric Abrahamsen
2020-04-09 21:15                             ` Nicolas Cavigneaux
2020-04-09 21:32                               ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87imi8flxs.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=cavigneaux@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).