Gnus development mailing list
 help / color / mirror / Atom feed
* 0.28 and gnus-article-hide-boring-headers
@ 1996-01-17  8:59 Kai Grossjohann
  1996-01-17 12:27 ` Kai Grossjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Grossjohann @ 1996-01-17  8:59 UTC (permalink / raw)


Hi all,

in gnus.el, at line 13133 in function
gnus-article-hide-boring-headers, I changed the code to read thusly:

	     ((eq elem 'reply-to)
              ;;- Kai added stringp tests here
	      (when (and (stringp (mail-fetch-field "from"))
                         (stringp (mail-fetch-field "reply-to"))
                         (equal (nth 1 (mail-extract-address-components
                                        (mail-fetch-field "from")))
                                (nth 1 (mail-extract-address-components
                                        (mail-fetch-field "reply-to")))))
		(gnus-article-hide-header "reply-to")))

I added the two stringp tests.  Was this the right thing to do?  What
should I have done instead?

The symptom was that mail-extract-address-components got called with a
nil argument which it didn't like at all.

        kai
--
I like both kinds of music.


^ permalink raw reply	[flat|nested] 3+ messages in thread
* 0.28 and gnus-article-hide-boring-headers
@ 1996-01-17  8:59 Kai Grossjohann
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Grossjohann @ 1996-01-17  8:59 UTC (permalink / raw)


Hi all,

in gnus.el, at line 13133 in function
gnus-article-hide-boring-headers, I changed the code to read thusly:

	     ((eq elem 'reply-to)
              ;;- Kai added stringp tests here
	      (when (and (stringp (mail-fetch-field "from"))
                         (stringp (mail-fetch-field "reply-to"))
                         (equal (nth 1 (mail-extract-address-components
                                        (mail-fetch-field "from")))
                                (nth 1 (mail-extract-address-components
                                        (mail-fetch-field "reply-to")))))
		(gnus-article-hide-header "reply-to")))

I added the two stringp tests.  Was this the right thing to do?  What
should I have done instead?

The symptom was that mail-extract-address-components got called with a
nil argument which it didn't like at all.

        kai
--
I like both kinds of music.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-01-17 12:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-01-17  8:59 0.28 and gnus-article-hide-boring-headers Kai Grossjohann
1996-01-17 12:27 ` Kai Grossjohann
  -- strict thread matches above, loose matches on Subject: below --
1996-01-17  8:59 Kai Grossjohann

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).