From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34376 Path: main.gmane.org!not-for-mail From: Bill White Newsgroups: gmane.emacs.gnus.general Subject: Re: htmlified mail Date: 24 Jan 2001 05:38:53 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035170314 30092 80.91.224.250 (21 Oct 2002 03:18:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:18:34 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id BD87CD049D for ; Wed, 24 Jan 2001 06:39:54 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id FAC05817; Wed, 24 Jan 2001 05:39:26 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 24 Jan 2001 05:38:48 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id FAA25505 for ; Wed, 24 Jan 2001 05:38:37 -0600 (CST) Original-Received: from dragonfly.wolfram.com (dragonfly.wolfram.com [140.177.10.12]) by mailhost.sclp.com (Postfix) with ESMTP id 105D5D049D for ; Wed, 24 Jan 2001 06:39:05 -0500 (EST) Original-Received: from g.wolfram.com (root@g.wolfram.com [140.177.4.48]) by dragonfly.wolfram.com (8.8.8/8.8.8) with ESMTP id FAA04120 for ; Wed, 24 Jan 2001 05:38:58 -0600 (CST) Original-Received: (from billw@localhost) by g.wolfram.com (8.9.3/8.9.2) id FAA28678; Wed, 24 Jan 2001 05:38:56 -0600 X-Authentication-Warning: g.wolfram.com: billw set sender to billw@wolfram.com using -f Original-To: ding@gnus.org 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: Memorial: Saint Francis de Sales, bishop and doctor of the Church, A.D. 2001 In-Reply-To: (Joakim Hove's message of "24 Jan 2001 10:15:40 +0100") User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.95 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 55 Xref: main.gmane.org gmane.emacs.gnus.general:34376 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34376 On Wed Jan 24 2001 at 03:15, Joakim Hove said: jh> I quite often get htmlized mail were people have underlined or jh> marked up text with bold or italic. These mails are generally jh> quite horrible to read. However most of the markup jh> (underline/bold/italic) can be simply reproduced in a normal jh> emacs buffer without resorting to w3 (or any other jh> browser). Is there a way I can do a simple washing of jh> text/html messages. I'm seeing a lot of this crap nowadays. Is this MS Lookout! output? Sometimes I use html2text - with the article displayed, type `|' in the Summary buffer and tell it to run a script. It loses all formatting elsewhere in the message (any lynx gurus/manpage readers out there?) but sometimes it's worthwhile. ,----[ ~/html2text ] | #! /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; | } `---- Hm. I guess it could be simplified, but oh well. Dunno where I got it. Cheers - bw -- Bill White . billw@wolfram.com . http://members.wri.com/billw "No ma'am, we're musicians."