From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14102 Path: news.gmane.org!not-for-mail From: Glyn Millington Newsgroups: gmane.emacs.gnus.user Subject: Re: Banner Washing Date: Sat, 02 Oct 2010 18:15:17 +0100 Organization: Utterly lacking Message-ID: <87wrq01pp6.fsf@nowhere.org> References: <838w2hdmx9.fsf@garydjones.name> <877hi1nd6u.fsf@eps142.cdf.udc.es> <83tyl4syq6.fsf@garydjones.name> Reply-To: wistanswick@linuxmail.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286041922 28814 80.91.229.12 (2 Oct 2010 17:52:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Oct 2010 17:52:02 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Oct 02 19:52:01 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P26Dv-00046q-N0 for gegu-info-gnus-english@m.gmane.org; Sat, 02 Oct 2010 19:52:01 +0200 Original-Received: from localhost ([127.0.0.1]:36208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P26Dq-0006Je-4G for gegu-info-gnus-english@m.gmane.org; Sat, 02 Oct 2010 13:50:10 -0400 Original-Received: from [140.186.70.92] (port=42230 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P264c-0000h5-BC for info-gnus-english@gnu.org; Sat, 02 Oct 2010 13:41:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2647-000801-G2 for info-gnus-english@gnu.org; Sat, 02 Oct 2010 13:40:08 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:42475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2647-0007zw-6J for info-gnus-english@gnu.org; Sat, 02 Oct 2010 13:40:07 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P2644-0002Fy-Fs for info-gnus-english@gnu.org; Sat, 02 Oct 2010 19:40:04 +0200 Original-Received: from 82.152.120.109 ([82.152.120.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 Oct 2010 19:40:04 +0200 Original-Received: from wistanswick by 82.152.120.109 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 Oct 2010 19:40:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 82.152.120.109 X-Liturgical-Date: Memorial: The Guardian Angels, A.D. 2010 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:M0Uut5OJ/187Hvggrzkx0+727LY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 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: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14102 Archived-At: "Gary" writes: > Alberto Luaces wrote: > >> "Gary" writes: >> >>> Is there some way of specifying "from this point on until the end >>> of >> the >>> article"? I don't want to have to specify every single line of the >>> entire block I want to remove. >> Are you looking for `message-kill-to-signature' (C-c C-z) while >> composing the reply in message mode? > > I don't think so. What I am interested in is > http://www.emacswiki.org/emacs/GnusAdBannerWashing Well to set up that example as an alist you would do something like this in your .gnus file. I guess the fine art in this is to construct a regular expression which will catch the banners you are tryng to kill off. (set gnus-article-address-banner-alist ;; Alist of mail addresses and banners. Each element has the ;; form (ADDRESS . BANNER), where ADDRESS is a regexp to match a ;; mail address in the From: header, BANNER is one of a symbol ;; `signature', an item in `gnus-article-banner-alist', a regexp and ;; nil. If ADDRESS matches author's mail address, it will remove ;; things like advertisements. For example: ; Yahoo - This regular expression should be reasonably stable, and ; reasonably safe. '(("@yahoo\\.com" . "^__________________+\nDo you Yahoo!\\?\n.*\n.*\n") ; Hotmail - Not very much can be matched, so this could be dangerous. ; Should be reasonably stable though. ; The other option is to use a much less stable value, and ; update it frequently. ("@hotmail\\.com\\|@msn.com" . "^_________________________________________________________________\n.*MSN .*\n.*\n") ; Netscape - Very unstable value, not much else can be done though. ; Unless a more stable value can be found, it seems the ; best way to maintain this is to OR updated regexps with ; this value. ("@netscape\\.net" . "^__________________________________________________________________\n.*Netscape Network.*\n.*\n.*\n\n.*AOL Instant Messenger.*\n.*\n"))) atb Glyn