From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12932 invoked from network); 29 Nov 2022 19:18:57 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 29 Nov 2022 19:18:57 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p067Z-0000ky-OQ; Tue, 29 Nov 2022 14:18:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0677-0000cM-Aw for info-gnus-english@gnu.org; Tue, 29 Nov 2022 14:17:54 -0500 Received: from mail.ericabrahamsen.net ([52.70.2.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0670-0001Y0-Mb for info-gnus-english@gnu.org; Tue, 29 Nov 2022 14:17:50 -0500 Received: from localhost (c-71-197-232-41.hsd1.wa.comcast.net [71.197.232.41]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 9146DFA0BD; Tue, 29 Nov 2022 19:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1669749455; bh=BaO4o93aRPSMXWM84LrUmb1JLpsMFrkxPmEcAO498xo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=an9j3GmX9TkYTvT6WCz6TTuUW4LAOzxfj02zJEmIda3bCZnv8XOO6XrR8wek0Huxb LoHNP3Cc2+CEP/zQK0+bhbgIBan7+yVfLciRUc0GgBOpw1aOsKdVfcBaEDv2hJsNuh dpkEDysSapjMwu7gsu1x1L0zpVwYRY9CZSxZ3CkA= From: Eric Abrahamsen To: Fernando de Morais Cc: info-gnus-english@gnu.org Subject: Re: Help needed: nnmaildir and expire-group parameter. 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") References: <87bkotz7r9.fsf@sekai.mail-host-address-is-not-set> Date: Tue, 29 Nov 2022 11:17:33 -0800 Message-ID: <87tu2hzi2a.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Fernando de Morais 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 . 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