From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: D Newsgroups: gmane.emacs.devel Subject: gnus: scoring articles by age Date: Fri, 30 Apr 2021 00:14:36 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34091"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 30 02:16:10 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcGpG-0008n6-4p for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Apr 2021 02:16:10 +0200 Original-Received: from localhost ([::1]:38940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcGpF-0008Lz-5j for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Apr 2021 20:16:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcGns-0007vQ-3A for emacs-devel@gnu.org; Thu, 29 Apr 2021 20:14:44 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:49083) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcGnp-0005Zb-NY for emacs-devel@gnu.org; Thu, 29 Apr 2021 20:14:43 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id BBFFF240026 for ; Fri, 30 Apr 2021 02:14:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619741677; bh=wyNWDTe4I1PHLS93oI7z8MQW+UlTDuleyP/7qxnC02U=; h=To:From:Subject:Date:From; b=XjUDOXHV/gUDjVTEwCmKPuYtEvlChR3ARK2R4maolhgoa4PX/cPyp/mByN/oLZymt 3tQZC/Ed7dAw6hTxYvo7CNhx9Nt07mWhM/Tpa7kQnlfkXSXVabM+Dh27gnLcl0GMLJ mYPPaYGjkwKb8fweS9HZt7/XZK32lhEX1AccT40qy13XEtqp75lZ2rsid8drlLlXws ycd4Wla6GZkIOxX19vM7TZ1RfLn8azV081Y9RqtBGEK1GuhAZ+3ftWLy+6T1nmaAey P7ne+6pxVUQdKrLl5Efh0v32U7gL8V/spRUDNXXpXmjKLKeOFwWdb61aq5E0JME3dO 26F+zsGGZuZYA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FWXtP01Zqz6tmG for ; Fri, 30 Apr 2021 02:14:36 +0200 (CEST) Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=d.williams@posteo.net; helo=mout01.posteo.de 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268647 Archived-At: Hi, as the subject already implies I was wondering if there is a sensible way to score articles "by age" in gnus. In principle this functionality seems to be available via the "Date" key in score files, for example, ("Date" ("20200430T012905" -1 nil before)) would subtract 1 from the score of any article posted one year ago or more. However, you'd have to update that value manually (yuck!) since you can't put an expression such as (format-time-string "%+4Y%m%dT%H%M%S" (time-subtract nil 31536000)) into a score file (afaik). As for why would that ever be useful: consider things like weeding out unsuccessful threads, where any root that has failed to amass any replies in some fixed time should receive a negative score, or a root that amassed many replies in a short time amass a positive score. Cheers, D.