From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1583 Path: news.gmane.org!not-for-mail From: Bijan Soleymani Newsgroups: gmane.emacs.gnus.user Subject: Re: check for a particular header before calling a washing function? Date: 07 Dec 2002 03:01:25 -0500 Message-ID: <87of7yfeay.fsf@server.crasseux.com> References: <877kemocp2.fsf@nybo.no> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138668312 11905 80.91.229.2 (31 Jan 2006 00:45:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:45:12 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:29:23 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!msc1.onvoy!onvoy.com!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-mail Original-Sender: bijan@server.crasseux.com Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 24.203.44.117 Original-X-Complaints-To: abuse@videotron.ca Original-X-Trace: wagner.videotron.net 1039247948 24.203.44.117 (Sat, 07 Dec 2002 02:59:08 EST) Original-NNTP-Posting-Date: Sat, 07 Dec 2002 02:59:08 EST Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1723 Original-Lines: 18 X-Gnus-Article-Number: 1723 Tue Jan 17 17:29:23 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1583 Archived-At: chr@nybo.no (Christian Nybø) writes: > If the header "Content-Type: text/plain; charset=utf-8" is present, I > want to call a washing function that translates from utf-8 to latin-1. > The function is ready, but where do I hook the test in? > -- > chr There is some stuff about how to access the information in the header, in the gnus info manual under the "headers" section. According to the documentation there are functions for accessing each field. However there are only 9 fields defined, with the last one being extra. I'm guessing that they split off the relevant info and put it in the 8 first slots and the remaining stuff goes in extra. Probably everything you're looking for would go in extra. Bijan