Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Help needed: nnmaildir and expire-group parameter.
@ 2022-11-26 22:11 Fernando de Morais
  2022-11-29 19:17 ` Eric Abrahamsen
  0 siblings, 1 reply; 6+ messages in thread
From: Fernando de Morais @ 2022-11-26 22:11 UTC (permalink / raw)
  To: info-gnus-english

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
                            (expire-age . 0)		         ; <-- Here
                            (expire-group . "nnmaildir:trash"))) ; <-- Here
  (customize-set-variable 'gnus-secondary-select-methods
                          '((nntp "")
                            (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")))

Unfortunately, the expired mail in `nnmaildir:inbox' does not move to
the `nnmaildir:trash' group, its stays, marked as expirable, in the
original one.

If I drop the `(expire-age . 0)' in favor of something like
`(expiry-wait . immediate)', which according to the manual will be
respected by `nnmaildir', instead of moving the mail to the configured
expiry group, it will delete it.

I tested defining an expiry group from another back end (thus from
another server); from another `nnmaildir' server; and tweaked
`expire-age'.  All this through, alternatively, the `gnus-parameters'
variable and from `gnus-group-edit-group-parameters' interface, but
without success.

So, what am I doing wrong?  Did I miss something?

Can anyone help me with this configuration?  I'll happily share any
further details about my actual settings, if needed.

Thanks in advance.

[1]  (info "(gnus) nnmaildir Group Parameters")
[2]  (info "(gnus) Comparing Mail Back Ends")

Fernando de Morais.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-30 18:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-26 22:11 Help needed: nnmaildir and expire-group parameter Fernando de Morais
2022-11-29 19:17 ` Eric Abrahamsen
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

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).