From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82470 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Html header washing question Date: Tue, 06 Nov 2012 10:05:24 +0900 Organization: Emacsen advocacy group Message-ID: References: <87vcdjyhug.fsf@gmx.co.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1352163947 26860 80.91.229.3 (6 Nov 2012 01:05:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2012 01:05:47 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30736@lists.math.uh.edu Tue Nov 06 02:05:57 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TVXc4-000892-MD for ding-account@gmane.org; Tue, 06 Nov 2012 02:05:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1TVXbn-0005mp-Kb; Mon, 05 Nov 2012 19:05:39 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1TVXbm-0005me-Fz for ding@lists.math.uh.edu; Mon, 05 Nov 2012 19:05:38 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1TVXbl-0001ps-1t for ding@lists.math.uh.edu; Mon, 05 Nov 2012 19:05:38 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TVXbj-0004cX-Jj for ding@gnus.org; Tue, 06 Nov 2012 02:05:35 +0100 Original-Received: from localhost ([127.0.0.1]:52525) by orlando.hostforweb.net with smtp (Exim 4.77) (envelope-from ) id 1TVXbc-0003t4-7n for ding@gnus.org; Mon, 05 Nov 2012 19:05:28 -0600 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130006 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.6) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:QV3snR+6voHGbzrJ0rOQPoNLpo0= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82470 Archived-At: Johnny wrote: > I have a RSS feed that sends html in the subject line, and I want to > display the text only; > e.g. from: > Opcon ett bolag p=E5 > v=E4g fram ! > to: > Opcon ett bolag p=E5 v=E4g fram ! That is just what the xml feed contains as .... I don't know what is the use of such one but I tried a filter: (defadvice nnrss-node-text (before wash-subject (namespace local-name eleme= nt) activate) "Wash subject string for ." (when (equal local-name 'title) (let* ((name (intern (concat namespace (symbol-name local-name)))) (node (assq name element)) (text (if (and node (listp node)) (nnrss-node-just-text node) node))) (and text (string-match "\\`]+>\\([^<]+\\)" text) (setcdr node (list nil (match-string 1 text))))))) (To try this, type `C-x C-e' at the end of the form, or add it to the ~/.gnus.el file.) > I have tried the "W h" and have mm-text-html-renderer set to "w3m" and > get the error "mm-get-part: Wrong type argument: bufferp, > #("multipart/alternative" 0 21 (boundary "=3D-=3D-=3D" buffer # *mm*<19>> from "GordonGekko" start nil))". That will be a bug anyway, though `W h' is useless for this case (it will work on an html article that is not labeled as text/html by the Content-Type header).