From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32574 Path: main.gmane.org!not-for-mail From: Paul Stevenson Newsgroups: gmane.emacs.gnus.general Subject: Re: [Q] stripping banners at the start of messages Date: 25 Sep 2000 15:41:59 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035168837 20591 80.91.224.250 (21 Oct 2002 02:53:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:53:57 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by mailhost.sclp.com (Postfix) with ESMTP id 86D17D051E for ; Mon, 25 Sep 2000 10:46:05 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id JAC02618; Mon, 25 Sep 2000 09:42:28 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 25 Sep 2000 09:41:50 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id JAA16972 for ; Mon, 25 Sep 2000 09:41:40 -0500 (CDT) Original-Received: from marie.ph.surrey.ac.uk (marie.ph.surrey.ac.uk [131.227.115.98]) by mailhost.sclp.com (Postfix) with ESMTP id 47BA7D051E for ; Mon, 25 Sep 2000 10:42:03 -0400 (EDT) Original-Received: from gromit.ph.surrey.ac.uk (gromit.ph.surrey.ac.uk [131.227.115.14]) by marie.ph.surrey.ac.uk (8.10.0/8.10.0) with ESMTP id e8PEg0I26240 for ; Mon, 25 Sep 2000 15:42:01 +0100 (BST) Original-Received: (from phs3ps@localhost) by gromit.ph.surrey.ac.uk (8.10.0/8.10.0) id e8PEg0922406; Mon, 25 Sep 2000 15:42:00 +0100 (BST) Original-To: ding@gnus.org In-Reply-To: Steinar Bang's message of "23 Sep 2000 09:12:42 +0200" Original-Lines: 33 User-Agent: Gnus/5.0806 (Gnus v5.8.6) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32574 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32574 Steinar Bang writes: > I have tried getting rid of banners like this: > > -------------------------- eGroups Sponsor -------------------------~-~> > Tired of searching for an apartment? Try Viva! It's fast and free. > Now serving Dallas, Houston, Austin, Phoenix, Denver and Las Vegas. > Rent by September 30th - get $100 cash! > http://click.egroups.com/1/9154/16/_/461700/_/968288860/ > ---------------------------------------------------------------------_-> > > with the following setting in the group parameters of the mail group > handling the list: > > (banner . "\n-------------------------- eGroups Sponsor -------------------------~-~>\n.*\n.*\n.*\n.*\n---------------------------------------------------------------------_->\n") I'm having exactly the same problem (eGroups banner). I can get rid of one line okay (by customizing the group and putting -------------------------- eGroups Sponsor -------------------------~-~>\n as the banner, but multiple-lines don't work. Oddly, though, the code in article-strip-banner which deletes the banner is (while (re-search-forward banner nil t) (delete-region (match-beginning 0) (match-end 0))) and if I edit the article and eval this via M-: and the explicit banner, it all goes. Is there some way I should be escaping newlines in the regexp? -- . Paul Stevenson . Reasearch Fellow . University of Surrey . I dream in beige