From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83079 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Expiring old low-score threads Date: Wed, 17 Apr 2013 22:17:34 +0800 Message-ID: <87sj2pw8ap.fsf@ericabrahamsen.net> References: <87r4i9iez8.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1366207944 451 80.91.229.3 (17 Apr 2013 14:12:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Apr 2013 14:12:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31345@lists.math.uh.edu Wed Apr 17 16:12:28 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 1UST61-0000bD-TM for ding-account@gmane.org; Wed, 17 Apr 2013 16:12:26 +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 1UST5U-0001Pv-7b; Wed, 17 Apr 2013 09:11:52 -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 1UST5S-0001Ph-BM for ding@lists.math.uh.edu; Wed, 17 Apr 2013 09:11:50 -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 1UST5O-0001KG-8v for ding@lists.math.uh.edu; Wed, 17 Apr 2013 09:11:49 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UST5M-0002oc-Al for ding@gnus.org; Wed, 17 Apr 2013 16:11:44 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UST5H-0007kr-Uu for ding@gnus.org; Wed, 17 Apr 2013 16:11:39 +0200 Original-Received: from 114.250.117.116 ([114.250.117.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Apr 2013 16:11:39 +0200 Original-Received: from eric by 114.250.117.116 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Apr 2013 16:11:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.250.117.116 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:uoUir5hLyD7BQLrQwnqiAqwGFRg= X-Spam-Score: -1.4 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83079 Archived-At: Tassilo Horn writes: > Hi all, > > I'm reading quite a few high-traffic mailing lists, and my mailbox is > shortly before running out of space. So I want to do some expiry. > Basically, I could use total-expire, say, after 365 days, but I'd prefer > if I could expire threads I'm not interested in much earlier than > threads that are interesting to me. > > So now I'm trying to write a command that walks over all threads in the > current summary and marks all threads that have a score lower than -30 > and whose most recent article is older than 60 days as expirable. > That's what I came up with so far. [...] > How can I fix this? I mean, I obviously want to run my command in > complete summary containing all articles I've ever received in that > group. Of course, chances are high that the group contains incomplete > threads with false roots where ^ (gnus-summary-refer-parent-article) > won't cure the symptoms. It's highly unlikely that I'm actually going to be able to help you with this, but in trying to write functions that run over *all* the messages in a group I've usually had to start them like this: (defun th-gnus-summary-exprire-old-lowscore-articles (group) (interactive (list (gnus-group-group-name))) (let ((gnus-large-newsgroup nil)) (gnus-summary-read-group group t t nil) That at least ensures that all the available messages are present in the *Summary* buffer. To be honest I haven't had much luck manipulating Gnus programmatically... Eric