From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82466 Path: news.gmane.org!not-for-mail From: Johnny Newsgroups: gmane.emacs.gnus.general Subject: Html header washing question Date: Mon, 05 Nov 2012 19:23:19 +0000 Message-ID: <87vcdjyhug.fsf@gmx.co.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1352143484 15090 80.91.229.3 (5 Nov 2012 19:24:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2012 19:24:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30732@lists.math.uh.edu Mon Nov 05 20:24:54 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 1TVSI0-00053w-9K for ding-account@gmane.org; Mon, 05 Nov 2012 20:24:52 +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 1TVSGj-0004Ef-Gl; Mon, 05 Nov 2012 13:23:33 -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 1TVSGi-0004EU-Eo for ding@lists.math.uh.edu; Mon, 05 Nov 2012 13:23:32 -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 1TVSGe-0000Pc-CU for ding@lists.math.uh.edu; Mon, 05 Nov 2012 13:23:31 -0600 Original-Received: from mailout-eu.gmx.com ([213.165.64.43]) by quimby.gnus.org with smtp (Exim 4.72) (envelope-from ) id 1TVSGc-0005Vn-J1 for ding@gnus.org; Mon, 05 Nov 2012 20:23:26 +0100 Original-Received: (qmail invoked by alias); 05 Nov 2012 19:23:20 -0000 Original-Received: from host86-190-100-119.wlms-broadband.com (EHLO deusexmachina) [86.190.100.119] by mail.gmx.com (mp-eu006) with SMTP; 05 Nov 2012 20:23:20 +0100 X-Authenticated: #57368918 X-Provags-ID: V01U2FsdGVkX19m3YkTJ15mLWc+3aDTsfPd2tlN97Armr6RCntnHP p6QW4oCXsL2kzx User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (gnu/linux) X-Y-GMX-Trusted: 0 X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.4475 Ham tokens: 0.000-1800--11827h-0s--0d--H*u:Emacs, 0.000-1494--9817h-0s--0d--H*u:Gnus, 0.000-1409--9256h-0s--0d--H*u:linux, 0.000-1409--9256h-0s--0d--H*UA:linux, 0.000-1378--9053h-0s--0d--H*UA:gnu Spam tokens: 0.991-743--37h-3579s--0d--H*Ad:D*gnus.org, 0.990-757--46h-3684s--0d--HTo:D*gnus.org, 0.987-796--64h-3948s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.987-796--64h-3948s--0d--H*RU:quimby.gnus.org, 0.987-1--0h-1s--0d--H*RU:sk:host86- Autolearn status: ham -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [213.165.64.43 listed in list.dnswl.org] 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4475] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82466 Archived-At: Hi, I have a RSS feed that sends html in the subject line, and I want to display the text only;=20 e.g. from: Opcon ett bolag p=C3= =A5 v=C3=A4g fram ! to: Opcon ett bolag p=C3=A5 v=C3=A4g fram ! 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 #> from "GordonGekko" start nil))". Thanks! --=20 Johnny 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).