From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83585 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: adaptive expiry? feature request? Date: Thu, 01 Aug 2013 18:44:22 +0200 Message-ID: References: <87zjyqsys3.fsf@ucl.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375375551 14129 80.91.229.3 (1 Aug 2013 16:45:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Aug 2013 16:45:51 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31843@lists.math.uh.edu Thu Aug 01 18:45:52 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V4w0M-00071d-Ge for ding-account@gmane.org; Thu, 01 Aug 2013 18:45:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1V4vzR-0002ff-JU; Thu, 01 Aug 2013 11:44:37 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1V4vzQ-0002fQ-Bf for ding@lists.math.uh.edu; Thu, 01 Aug 2013 11:44:36 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1V4vzO-0003gp-M0 for ding@lists.math.uh.edu; Thu, 01 Aug 2013 11:44:36 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1V4vzN-0005G2-Ae for ding@gnus.org; Thu, 01 Aug 2013 18:44:33 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1V4vzC-0001ZZ-LJ for ding@gnus.org; Thu, 01 Aug 2013 18:44:22 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUAAAABAQMKCgsAAAEB AQFyamYBAQQCAwZPSkcoJSS6Z0qHAAACN0lEQVQ4jXWTwW/aMBTGLbDUcYyEArutGRVwK4LdneZR 7pWyhWN2CGeYaNbjEB7OcRGR7P+279mBBdpaEJB//vz5vc9h7P3BP/oPHwguVl2Mtwou6CnC63lR /74BvJY9Nn1ugsUZPzZXfzbl2cRrgpEpRS2AC6CtwgL+HiBPV/nNvVt3UhCxoHMEGgulEeCffyfz T3GsaCS6eDFmbPZYpgNPVRwnWsaqGKtC6/1ZsbuL4+UIdYWizx/BogyteGdXOZAkuKFM9oyHVsGL GAFCmcT0+Aow8e35WhJXm6MFqhgAeJ4DbTGdCs6kfJqCwCO1wxrUSVRqh45USuTlNHMKp1IHOguI 9sSCcwbbAkvj1ATPbwAmOsWAwSTycKzyhgXjwxm1Cuf9KwBkeA14HV0aEsib5lQBrscaVhkC0bh0 AndzG1lQO6AEAUeQ1YD/dxGkyHAj69H6FXxZD9jDbMEXt36vl28CApzNVWISeZtUldFyu/2t4iLP A7Tuf0tGalgc+2qpfyqpDlVJQLD+fDeqguJoVKVffih50BYwNl8my7lcq+93fS3/qq3dakgnEQCh Rz1K/XS9wqo39lTQGpuyzMugHJtguBkGOFwdD3TJAvwag3NnwNgMugBC8JmNKM38U4EhRIB5YhSY XojN7eWuQLKn14jSFngMz88yzzYRt7EvC7YN2w5R6D+7oEhBSg4o6kKXcmpeBsobwu6ErkK+sUmA SwubHnm91MstgHsXEXEOM7o7+TOCVy4bxcsqwCjUAAAAAElFTkSuQmCC X-Now-Playing: Dead Can Dance's _Anastasis In Concert_: "Song To The Siren" X-Hashcash: 1:23:130801:ding@gnus.org::Y/hXQ/jOMVKcYJGo:00003OiH In-Reply-To: <87zjyqsys3.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Tue, 26 Feb 2013 18:41:48 +0000") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1V4vzC-0001ZZ-LJ MailScanner-NULL-Check: 1375980262.94816@l/u9syj5igWC+6CHBXwtfg X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83585 Archived-At: Eric S Fraga writes: > What I would like is to have an expiry policy that is adaptive, in the > same way as scoring is. In fact, I would love to have an expiry time > that is a function of the score (meaning that active threads, for > instance, would not expire for quite a long time) and I guess other > message attributes. In other words, a more general version of the > nnmail-expiry-wait-function and nnmail-fancy-expiry-targets functions > would be quite nice to have! > > Is such a thing possible? I've searched gnus variables and done a web > search of sorts but found nothing. I think it should be possible (maybe > even straightforward?) to implement but my elisp is not good enough to > even think about doing this. I don't think there's anything in Gnus for doing that fine-grained expiry, unfortunately. If you look at (for instance) `nnml-request-expire-articles' (or whatever mail backend you use), `nnmail-expired-article-p' is called to determine whether an article is "old". You'd have to wrap that call with something that sets nnmail-expiry-wait with something that depends on the score of the article. > Footnotes: > [1] does any other MUA have scoring? Not that I intend to change :-) > Just curious. At the time Gnus introduced scoring (1993?) there were definitely a lot of discussion about how to deal with the amazingly huge information overload from Usenet. >"? So I don't think the scoring idea was original to Gnus. I think we developed the adaptive scoring thing at Gnus, though. -- (domestic pets only, the antidote for overdose, milk.) No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php