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=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8489 invoked from network); 6 Apr 2022 19:23:44 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 6 Apr 2022 19:23:44 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ncBFk-00H41O-CJ for ml@inbox.vuxu.org; Wed, 06 Apr 2022 14:23:40 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1ncBFj-006sFs-Nx for ml@inbox.vuxu.org; Wed, 06 Apr 2022 14:23:39 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nc8w6-006rri-Nt for ding@lists.math.uh.edu; Wed, 06 Apr 2022 11:55:14 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nc8w4-003aLc-4V for ding@lists.math.uh.edu; Wed, 06 Apr 2022 11:55:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kcN3ubtRmQh+bywCijCIaDL3mK430VthyWDtqULIqjw=; b=NVxHJWPe74G8bTf3LJjIiQGthU yv4liFAyolWKnEJA1kh2yVb9v+PIOmhBBvg9t6o7RVRpUcJIAzmTl57DVA2dg+Jtnob2j3zvxDut3 VFFXi+IaCYKAwYksvjamC7PSBbi9ap56n0qWylwL3xvkEoWKqNXL6jkwtG+pugkfqRvk=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nc8vw-0005aZ-Ot for ding@gnus.org; Wed, 06 Apr 2022 18:55:07 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nc8vu-0004PP-IS for ding@gnus.org; Wed, 06 Apr 2022 18:55:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Felix Dietrich Subject: Re: how long is a temporary down score in effect? Date: Wed, 06 Apr 2022 18:36:18 +0200 Message-ID: <87h776xj7h.fsf@sperrhaken.name> References: <87v8wg4a0y.fsf@zoho.eu> <87o82849pl.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:xESrXt9OCGyMmR+RElmPyrodn20= List-ID: Precedence: bulk Emanuel Berg writes: > how long is a temporary down score in effect? > I'd like to set the temporary down score time to _1 month_ to > begin with ... Is there really no variable (option) for that? Does ‘gnus-score-expiry-days’ do what you want? Number of days before unused score file entries are expired. If this variable is nil, no score file entries will be expired. > In (info "(gnus) Score File Format") lines 72-77 it says: > > If the third element is present it [...] says when the last > time this score entry matched, which provides a mechanism > for expiring the score entries. [...] The date is > represented by the number of days since December 31, 1 BCE. > > The number that I get in the score file is 738228. > > I also don't find where this is computed in the Gnus > source ... The function ‘gnus-score-headers’ does: #+begin_src emacs-lisp (let ;; [elided assignments] (now (time-to-days nil)) (expire (and gnus-score-expiry-days (- now gnus-score-expiry-days))) #+end_src And the various scoring functions have: #+begin_src emacs-lisp (cond ;; [elided conditions] ;; This entry has expired, so we remove it. ((and expire (< date expire)) (gnus-score-set 'touched '(t) alist) (setcdr entries (cddr entries))) ;; [elided conditons] ) #+end_src I donʼt know if these really do what I suspect, but they are the best candidates I could find with a short ‘apropos’ and ‘occur’. -- Felix Dietrich