From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46671 Path: main.gmane.org!not-for-mail From: TSUCHIYA Masatoshi Newsgroups: gmane.emacs.gnus.general Subject: Re: split banners of free mail servers Date: Tue, 24 Sep 2002 18:40:04 +0900 Sender: owner-ding@hpc.uh.edu Message-ID: <877khbzpxn.fsf@pine.kuee.kyoto-u.ac.jp> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Tue_Sep_24_18:40:04_2002-1" X-Trace: main.gmane.org 1032860469 19621 127.0.0.1 (24 Sep 2002 09:41:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Sep 2002 09:41:09 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17tmBo-00056I-00 for ; Tue, 24 Sep 2002 11:41:08 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17tmAw-0002zx-00; Tue, 24 Sep 2002 04:40:14 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 24 Sep 2002 04:40:53 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id EAA10169 for ; Tue, 24 Sep 2002 04:40:39 -0500 (CDT) Original-Received: (qmail 17132 invoked by alias); 24 Sep 2002 09:39:55 -0000 Original-Received: (qmail 17127 invoked from network); 24 Sep 2002 09:39:54 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 24 Sep 2002 09:39:54 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 17tmrD-00045W-00 for ; Tue, 24 Sep 2002 12:23:55 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 51 Original-NNTP-Posting-Host: pine.kuee.kyoto-u.ac.jp Original-X-Trace: quimby.gnus.org 1032863034 14994 130.54.208.130 (24 Sep 2002 10:23:54 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 24 Sep 2002 10:23:54 GMT X-cite: xcite 1.46 User-Agent: T-gnus/6.15.8 (based on Oort Gnus v0.08) (revision 03) SEMI/1.14.3 (Ushinoya) FLIM/1.14.5 (Demachiyanagi) APEL/10.3 Emacs/21.2 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI) Cancel-Lock: sha1:7EpgDdZ6yvt5e/6wFImXHAfiUpI= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46671 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46671 --Multipart_Tue_Sep_24_18:40:04_2002-1 Content-Type: text/plain; charset=US-ASCII Hello, Gnus developers. >> On Wed, 11 Sep 2002 13:47:45 +0900 >> tsuchiya@namazu.org said as follows: >Some mail servers, which provide free mail accounts, insert their >advertisements into their relaying messages. In order to split them, >I propose the following change. I have noticed that this change causes a wrong-type-argument error when a message including no from header is displayed. In order to avoid this error, I propose the following change. 2002-09-24 TSUCHIYA Masatoshi * gnus-art.el (article-strip-banner): Check the existence of from header. --Multipart_Tue_Sep_24_18:40:04_2002-1 Content-Type: text/plain; charset=US-ASCII --- gnus-art.el 2002/09/23 20:38:23 6.239 +++ gnus-art.el 2002/09/24 10:22:47 @@ -2281,10 +2281,11 @@ (article-narrow-to-head) (caar (mail-header-parse-addresses (mail-fetch-field "from")))))) - (catch 'found - (dolist (pair gnus-article-address-banner-alist) - (when (string-match (car pair) from) - (throw 'found (cdr pair)))))))) + (when from + (catch 'found + (dolist (pair gnus-article-address-banner-alist) + (when (string-match (car pair) from) + (throw 'found (cdr pair))))))))) (when banner (article-goto-body) (cond --Multipart_Tue_Sep_24_18:40:04_2002-1 Content-Type: text/plain; charset=US-ASCII -- TSUCHIYA Masatoshi --Multipart_Tue_Sep_24_18:40:04_2002-1--