Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: split banners of free mail servers
Date: Tue, 24 Sep 2002 18:59:26 +0900	[thread overview]
Message-ID: <yotlwupbpv29.fsf@jpl.org> (raw)
In-Reply-To: <877khbzpxn.fsf@pine.kuee.kyoto-u.ac.jp>

>>>>> In <877khbzpxn.fsf@pine.kuee.kyoto-u.ac.jp>
>>>>>	TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp> wrote:

> 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  <tsuchiya@namazu.org>

>         * gnus-art.el (article-strip-banner): Check the existence of
>         from header.

Thanks.  I've modified it as follows:

	  (setq banner
		(let ((from (save-restriction
			      (widen)
			      (article-narrow-to-head)
			      (mail-fetch-field "from"))))
		  (when (and from
			     (setq from
				   (caar (mail-header-parse-addresses from))))
		    (catch 'found
		      (dolist (pair gnus-article-address-banner-alist)
			(when (string-match (car pair) from)
			  (throw 'found (cdr pair)))))))))
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



      reply	other threads:[~2002-09-24  9:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-11  4:47 tsuchiya
2002-09-11  5:18 ` Katsumi Yamaoka
2002-09-11  5:30   ` tsuchiya
2002-09-11  5:48     ` Katsumi Yamaoka
2002-09-24  9:40 ` TSUCHIYA Masatoshi
2002-09-24  9:59   ` Katsumi Yamaoka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yotlwupbpv29.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).