From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/37145 Path: main.gmane.org!not-for-mail From: Bill White Newsgroups: gmane.emacs.gnus.general Subject: Re: bah, i've had it with html Date: Fri, 27 Jul 2001 07:34:37 -0500 Message-ID: References: <873d7j2r0r.church.of.emacs@space-ghost.verbum.org> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035172612 12320 80.91.224.250 (21 Oct 2002 03:56:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:56:52 +0000 (UTC) Cc: Brian Edmonds , ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 3241 invoked from network); 27 Jul 2001 12:34:40 -0000 Original-Received: from wri-dns0.wolfram.com (HELO wolfram.com) (140.177.205.10) by gnus.org with SMTP; 27 Jul 2001 12:34:40 -0000 Original-Received: from g.wolfram.com (billwpc.wolfram.com [140.177.5.16]) by wolfram.com (8.11.2/8.11.2) with ESMTP id f6RCYbc08546; Fri, 27 Jul 2001 07:34:37 -0500 Original-Received: (from billw@localhost) by g.wolfram.com (8.9.3/8.9.2) id HAA25395; Fri, 27 Jul 2001 07:34:37 -0500 X-Authentication-Warning: g.wolfram.com: billw set sender to billw@wolfram.com using -f Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) X-Face: #t7>yWrgv~u6*cn3(6X"z={I/l%nH{(W:#WS-kA|s(Kcu`,=9qGWth&; @\^1U5s"'~/hhBr)ZU0<$?W:C33QJ}$t)m`&?8POaq*>5@/7xEPo!>gb;9Z[x)n%:yE#{A)6rNV_Ow ;vCO&LS=@3c=j'6@^T#Mic6zfW|Ehj0~2;jG9Df+DK'h`bTj>XsArg2CH`jW whq]J?SsvWnqa,{.C\,j]u*L:z6/2am5n5Q~6vC0fKPAMa7?Y6:eC.ThbVX X-Liturgical-Date: Weekday: Friday of the Sixteenth Week of Ordinary Time In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Fri, 27 Jul 2001 11:07:19 +0200") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 63 Xref: main.gmane.org gmane.emacs.gnus.general:37145 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:37145 On Fri Jul 27 2001 at 04:07, Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DF= johann) said: > On 26 Jul 2001, Brian Edmonds wrote: >=20 >> Many thanks, this works great! Nothing against w3, which I have >> used happily for various actual web browsing, I just wince every >> time it gets started up for a piece of email. >=20 > I'm happy with this: >=20 > (add-to-list 'mm-discouraged-alternatives "text/html") >=20 > Often, HTML messages have a text/plain alternative. I've used your line above for quite a while, but I see text/plain alternatives so rarely nowadays that it's time for something more powerful. When I receive an html-only message, I edit the article (`e' in the summary buffer), then select all the html code and run an html2text[1] script on it (`C-u M-| html2text'), then, of course, finish up with `C-c C-c'. Is there some way to automate that for these stupid html-only nnml messages? Cheers - bw Footnotes:=20 [1]=20 ---------------------------------------------------------------------- #! /usr/local/bin/perl $^W =3D 1; use strict; use POSIX (); use Fcntl; my $tmp =3D POSIX::tmpnam(); while( ! sysopen(F, $tmp, O_WRONLY|O_EXCL|O_CREAT, 0600) ) { die "Attempt to open $tmp failed: $!" unless $! =3D~ "File exists"; $tmp =3D POSIX::tmpnam(); } while(<>) { print F; } close(F) or die "Close of $tmp failed: $!"; !system(qw(lynx -dump -force_html), $tmp) or die "System failed: $!"; END { unlink $tmp if -f $tmp; } ---------------------------------------------------------------------- --=20 Bill White . billw@wolfram.com . http://members.wri.com/billw "No ma'am, we're musicians."