From: Bill White <billw@wolfram.com>
Cc: Brian Edmonds <brian@gweep.ca>, ding@gnus.org
Subject: Re: bah, i've had it with html
Date: Fri, 27 Jul 2001 07:34:37 -0500 [thread overview]
Message-ID: <ruoy9pa7dpe.fsf@g.wolfram.com> (raw)
In-Reply-To: <vafpuam7naw.fsf@lucy.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Fri, 27 Jul 2001 11:07:19 +0200")
On Fri Jul 27 2001 at 04:07, Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) said:
> On 26 Jul 2001, Brian Edmonds wrote:
>
>> 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.
>
> I'm happy with this:
>
> (add-to-list 'mm-discouraged-alternatives "text/html")
>
> 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:
[1]
----------------------------------------------------------------------
#! /usr/local/bin/perl
$^W = 1;
use strict;
use POSIX ();
use Fcntl;
my $tmp = POSIX::tmpnam();
while( ! sysopen(F, $tmp, O_WRONLY|O_EXCL|O_CREAT, 0600) ) {
die "Attempt to open $tmp failed: $!"
unless $! =~ "File exists";
$tmp = 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;
}
----------------------------------------------------------------------
--
Bill White . billw@wolfram.com . http://members.wri.com/billw
"No ma'am, we're musicians."
next prev parent reply other threads:[~2001-07-27 12:34 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-26 22:47 Brian Edmonds
2001-07-26 23:45 ` Colin Walters
2001-07-27 5:24 ` Brian Edmonds
2001-07-27 9:07 ` Kai Großjohann
2001-07-27 12:34 ` Bill White [this message]
2001-07-27 13:19 ` Brian Edmonds
2001-07-27 13:46 ` Kim Minh Kaplan
2001-07-27 13:58 ` Bill White
2001-07-27 14:07 ` Itai Zukerman
2001-07-27 14:38 ` Bill White
2001-07-27 20:15 ` Kai Großjohann
2001-07-27 15:44 ` Stainless Steel Rat
2001-07-27 16:42 ` Graham Murray
2001-07-27 20:17 ` Kai Großjohann
2001-07-27 21:02 ` Stainless Steel Rat
2001-07-27 23:05 ` Karl Kleinpaste
2001-07-27 12:03 ` Itai Zukerman
2001-07-27 14:46 ` Simon Josefsson
2001-07-27 15:41 ` Itai Zukerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ruoy9pa7dpe.fsf@g.wolfram.com \
--to=billw@wolfram.com \
--cc=brian@gweep.ca \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).