[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help needed: nnmaildir and expire-group parameter.
From: |
Eric Abrahamsen |
Subject: |
Re: Help needed: nnmaildir and expire-group parameter. |
Date: |
Tue, 29 Nov 2022 11:17:33 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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