From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Fernando de Morais <fernando.morais@academico.ifpb.edu.br>
Cc: info-gnus-english@gnu.org
Subject: Re: Help needed: nnmaildir and expire-group parameter.
Date: Tue, 29 Nov 2022 11:17:33 -0800 [thread overview]
Message-ID: <87tu2hzi2a.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87bkotz7r9.fsf@sekai.mail-host-address-is-not-set> (Fernando de Morais's message of "Sat, 26 Nov 2022 19:11:06 -0300")
Fernando de Morais <fernando.morais@academico.ifpb.edu.br> writes:
> Hello everyone,
>
> According to the manual[1][2], `nnmaildir' uses its own group parameters
> to handle expiration.
>
> Excepting `nnmail-expiry-wait(-function)' variables, to handle
> expiration per group, the user needs to set values for `expire-age' and
> `expire-group' parameters. Ok, so considering the snippet below:
>
> #+begin_src emacs-lisp
> (customize-set-variable 'gnus-parameters
> '("nnmaildir:inbox"
> (expire-age . 0) ; <-- Here
> (expire-group . "nnmaildir:trash"))) ; <-- Here
> (customize-set-variable 'gnus-secondary-select-methods
> '((nntp "news.gwene.org")
> (nnmaildir ""
> (directory "~/Mail/")
> (target-prefix "")
> (get-new-mail t))))
> (customize-set-variable 'gnus-select-method '(nnnil ""))
> (customize-set-variable 'gnus-total-expirable-newsgroups
> (regexp-opt '("nnmaildir:trash")))
> #+end_src
A quick check you can do is to evaluate (after Gnus has loaded):
(nnmaildir--param "nnmaildir:inbox" 'expire-age)
And see what that gives you. I'm not entirely sure that
"nnmaildir:inbox" is correct, and I wonder if the problem you're seeing
comes from the fact that your nnmaildir server has a blank string for a
name.
The real check would be to edebug `nnmaildir-request-expire-articles'
and see what it's doing. You may already be familiar with edebug; if not
then put point inside that function and hit "C-u C-M-x". The next time
expiry runs the process will halt and display this function, and you can
step through it with <SPC>. As point passes over various sexps, their
return value will be shown in the minibuffer. Look for the value of
"pgname", and the 'expire-age parameter, and later the 'expire-group
parameter. Something in there should jump out at you as "wrong".
(Apologies if you already know edebug.)
Eric
next prev parent reply other threads:[~2022-11-29 19:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-26 22:11 Fernando de Morais
2022-11-29 19:17 ` Eric Abrahamsen [this message]
2022-11-29 19:21 ` Emanuel Berg
2022-11-29 21:59 ` Fernando de Morais
2022-11-30 17:16 ` Eric Abrahamsen
2022-11-30 18:19 ` Fernando de Morais
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=87tu2hzi2a.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=fernando.morais@academico.ifpb.edu.br \
--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).