From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16259 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.user Subject: Re: Kill certain articles in certain groups all from gnus.el Date: Thu, 25 Apr 2013 08:44:04 +0200 Message-ID: <87ehdzw1mz.fsf@thinkpad.tsdh.de> References: <20130425030449.GA12476@ps11007.dreamhostps.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366872269 2785 80.91.229.3 (25 Apr 2013 06:44:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Apr 2013 06:44:29 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Apr 25 08:44:33 2013 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UVFuy-0005uz-MH for gegu-info-gnus-english@m.gmane.org; Thu, 25 Apr 2013 08:44:32 +0200 Original-Received: from localhost ([::1]:48483 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVFuy-0001mc-CA for gegu-info-gnus-english@m.gmane.org; Thu, 25 Apr 2013 02:44:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVFur-0001lq-L4 for info-gnus-english@gnu.org; Thu, 25 Apr 2013 02:44:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVFum-0000Gd-Nr for info-gnus-english@gnu.org; Thu, 25 Apr 2013 02:44:25 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:58469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVFum-0000GQ-Hd for info-gnus-english@gnu.org; Thu, 25 Apr 2013 02:44:20 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UVFuf-0005an-K4 for info-gnus-english@gnu.org; Thu, 25 Apr 2013 08:44:13 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Apr 2013 08:44:13 +0200 Original-Received: from tsdh by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Apr 2013 08:44:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:S6DXWzML8WV4+c1gkf+Z5SxDmzw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 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+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:16259 Archived-At: jidanni@jidanni.org writes: > Gentlemen, I wish to > Kill (so I don't see them) all articles > that match Subject: /xxx/ > whose group name matches: /yyy/ > and have this all contained within my .gnus.el file for easy maintenance. > > I don't want to have 15 identical files one for each group. > > I don't want a global kill string that matches every group. > > I don't want this stuck in some binary .eld file that I have to fight > with gnus about who gets to edit it. This is completely untested, but I think it should do the job. It creates a score file /tmp/gnus.score that contains just one entry assigning to xxx articles a score of -10000. Via gnus-parameters, this score file will be used in yyy groups only. Additionally, the expunge below limit is set to -9999 in those groups so that you don't see the articles at all. --8<---------------cut here---------------start------------->8--- (defvar my-gnus-yyy-score-file (expand-file-name "gnus.score" temporary-file-directory)) (with-temp-buffer ;; Every article with a Subject containing "xxx" gets a score of -10000. (insert "((\"subject\" (\"xxx\" -10000 nil r)))") (write-file my-gnus-yyy-score-file)) (setq gnus-parameters `(("yyy" ;; In every group matching "yyy" use the score file generated ;; above. (score-file . ,my-gnus-yyy-score-file) ;; Don't show articles with a score lower than -9999. (gnus-summary-expunge-below -9999)))) --8<---------------cut here---------------end--------------->8--- Not sure, maybe there's a better way to do that... Bye, Tassilo